argv[0] has type `char *' and your function accepts an argument of type `char []'. In C, these two are equivalent.

However, the following may work but is probably not correct:


#include...