Is it true that argv[] is terminated by a NULL string? Like
So can you goCode:Arguments: argv[0] = "program" argv[1] = "arg1" argv[2] = "arg2" argv[3] = ""
Instead ofCode:int x; for(x = 0; argv[0][0]; x ++) { /* ...code...*/ }
Because then I can pass one less parameter to my argument validating function(s).Code:int x; for(x = 0; x < argc; x ++) { /* ...code... */ }