1 /* vi: set sw=4 ts=4: */
7 const char length_usage[] =
9 #ifndef BB_FEATURE_TRIVIAL_HELP
10 "\nPrints out the length of the specified STRING.\n"
14 extern int length_main(int argc, char **argv)
16 if (argc != 2 || **(argv + 1) == '-')
18 printf("%lu\n", (long)strlen(argv[1]));