On 9/19/2014 7:56 PM, Keith Medcalf wrote:
the actual type of the argument strings passed to the main function of a C
program is char*[], not char**
It's valid either way.
C99 6.7.5.3/7 A declaration of a parameter as "array of type" shall be
adjusted to "qualified pointer to type"...
And even more explicitly:
5.1.2.2.1/1 The function called at program startup is named main. It
shall be defined with a return type of int and ... with two parameters...:
int main(int argc, char *argv[]) { /* ... */ }
or equivalent;9)...
Footnote 9: Thus, int can be replaced by a typedef name defined as int,
or the type of argv can be written as char ** argv, and so on.
--
Igor Tandetnik
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users