projects
/
oweals
/
busybox.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
made note of my recent changes
[oweals/busybox.git]
/
length.c
1
#include "internal.h"
2
#include <stdlib.h>
3
#include <string.h>
4
#include <stdio.h>
5
6
extern int
7
length_main(int argc, char * * argv)
8
{
9
if ( **(argv+1) == '-' ) {
10
usage("length string\n");
11
}
12
printf("%d\n", strlen(argv[1]));
13
return( TRUE);
14
}