Patch from Matt Kraai to enable proxy support.
[oweals/busybox.git] / length.c
1 /* vi: set sw=4 ts=4: */
2 #include "busybox.h"
3 #include <stdlib.h>
4 #include <string.h>
5 #include <stdio.h>
6
7 extern int length_main(int argc, char **argv)
8 {
9         if (argc != 2 || **(argv + 1) == '-')
10                 usage(length_usage);
11         printf("%lu\n", (long)strlen(argv[1]));
12         return EXIT_SUCCESS;
13 }