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