Remove yet more kernel header dependancies.
[oweals/busybox.git] / 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) == '-') {
-               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);
 }