Not sure why no one has suggested changing strlen to refer to a specific entry in the array of pointers to char?
strlen(argv[0]) // also, 1, 2, up to (argc - 1)
Also, http://www.cdecl.org/ helps in confirming that the char *argv[] statement is: declare argv as array of pointer to char