summaryrefslogtreecommitdiff
path: root/strlen.c
blob: a7fead67d8c31409d51884cfc24008bd27d3d384 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

int main(int argc, char *argv[])
{
    int f;
    int len;

    for(f = 1; argv[f]; f++)
    {
    	len = strlen(argv[f]);
	printf("strlen(%s) = %d\n", argv[f], len);
    }

    return EXIT_SUCCESS;
}