int main(int argc, char *argv[])
argv
is an array of pointers to char
(i.e. array of strings). The length of this array is stored in argc
argument.
strlen
is meant to be used to retrieve the length of the single string that must be null-terminated else the behavior is undefined.