[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Simple c program won't compile



also sprach Xucaen (on Tue, 06 Mar 2001 10:36:15AM -0800):
> > int main(int foo, char **bar, char **baz)
> to be honest, I haven't seen this last one. how
> does it work?

the third argument is a pointer to a sequence of pointers to
environment var=val pairs, terminated by a null pointer.

martin

> let us not forget the classic:
> int main(int argc, char *argv[])

or int main(int argc, char **argv)

and the classic above is:

int main(int argc, char **argv, char **envp)

martin

[greetings from the heart of the sun]# echo madduck@ !#:1:s@\@@@.net
-- 
you work very hard. don't try to think as well.



Reply to: