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 00e5a171bf5208c8a6d2c559d3c5fe71ef65f16c..c7df216112216bfad014246c66d51ece8b089f64 100644
(file)
--- a/
length.c
+++ b/
length.c
@@
-7,8
+7,12
@@
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("%
d\n",
strlen(argv[1]));
+ printf("%
lu\n", (long)
strlen(argv[1]));
return (TRUE);
}
return (TRUE);
}