X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=length.c;h=c7df216112216bfad014246c66d51ece8b089f64;hb=9b2297a34e35be143155769a470331af2f2b9330;hp=00e5a171bf5208c8a6d2c559d3c5fe71ef65f16c;hpb=e49d5ecbbe51718fa925b6890a735e5937cc2aa2;p=oweals%2Fbusybox.git diff --git a/length.c b/length.c index 00e5a171b..c7df21611 100644 --- 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); }