diff options
Diffstat (limited to 'length.c')
-rw-r--r-- | length.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,14 +1,14 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
1 | #include "internal.h" | 2 | #include "internal.h" |
2 | #include <stdlib.h> | 3 | #include <stdlib.h> |
3 | #include <string.h> | 4 | #include <string.h> |
4 | #include <stdio.h> | 5 | #include <stdio.h> |
5 | 6 | ||
6 | extern int | 7 | extern int length_main(int argc, char **argv) |
7 | length_main(int argc, char * * argv) | ||
8 | { | 8 | { |
9 | if ( argc != 2 || **(argv+1) == '-' ) { | 9 | if (argc != 2 || **(argv + 1) == '-') { |
10 | usage("length string\n"); | 10 | usage("length string\n"); |
11 | } | 11 | } |
12 | printf("%d\n", strlen(argv[1])); | 12 | printf("%d\n", strlen(argv[1])); |
13 | return( TRUE); | 13 | return (TRUE); |
14 | } | 14 | } |