@ivesen argc will be 1 to account for argv[0]. argv[argc] likewise should always be NULL or actually out of bounds depending on the compiler implementation since the last thing on the CMD line will be argv[argc-1]...
@Absinthe chapter 5.1.2.2.1 defines argv[argv] explicitly as being null. the only case this doesn't hold for is if argv you don't have a program name, at which point you're not working with an operating system any more http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf
chapter 5.1.2.2.1 defines argv[argv] explicitly as being null.
the only case this doesn't hold for is if argv you don't have a program name, at which point you're not working with an operating system any more
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1256.pdf