projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove yet more kernel header dependancies.
[oweals/busybox.git]
/
length.c
diff --git
a/length.c
b/length.c
index 4cbe7e17b088b2c105dda17a1036d3d8f3c0e2b0..c7df216112216bfad014246c66d51ece8b089f64 100644
(file)
--- a/
length.c
+++ b/
length.c
@@
-7,7
+7,11
@@
extern int length_main(int argc, char **argv)
{
if (argc != 2 || **(argv + 1) == '-') {
extern int length_main(int argc, char **argv)
{
if (argc != 2 || **(argv + 1) == '-') {
- usage("length string\n");
+ usage("length STRING\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nPrints out the length of the specified STRING.\n"
+#endif
+ );
}
printf("%lu\n", (long)strlen(argv[1]));
return (TRUE);
}
printf("%lu\n", (long)strlen(argv[1]));
return (TRUE);