aboutsummaryrefslogtreecommitdiff
path: root/length.c
diff options
context:
space:
mode:
Diffstat (limited to 'length.c')
-rw-r--r--length.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/length.c b/length.c
index 2c83cdfd2..00e5a171b 100644
--- a/length.c
+++ b/length.c
@@ -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
6extern int 7extern int length_main(int argc, char **argv)
7length_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}