I would guess that he is a beginner in functions and probably haven't heard of strlen.
A function's prototype has the following format :
arg stands for argument
Code:
returnValue functionName(typeOfArgOne argOne, typeOfArgTwo argTwo, ...);
Let's have some examples of function's prototypes (declarations).
Example No. 1
A function named foo, that returns an integer and has as argument an integer.
Code:
int foo(int number);
Example No. 2
A function named foo2, that returns an integer and has as argument two integers.
Code:
int foo2(int a, int b);
Example No. 3
A function named foo3, that returns an integer and has zero arguments.
Tip : When no arguments are needed, we write void.
Example No. 4
A function named foo, that returns nothing and has as argument an integer.
Tip : We write void as return value.
Code:
void foo4(int number);
Example No. 5
A function named foo5, that returns an integer and has as argument a character.
Example No. 6
A function named foo6, that returns an integer and has as argument an array of characters (thus a word, a string).
Code:
int foo6(char String[]);
Hope this helps a bit.