Re: [AD] Proposal for new magic main |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On February 22, 2002 12:09 pm, you wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> > But that's ugly.
> >
> > Well, I now wonder whether this proposal is that good. Any alternative ?
>
> Well, if we're talking about environment variables:
>
> At least in Linux the shell passes on env. vars as a second set of strings
> *after* the first NULL in argv. (With a second NULL at the end.)
>
> Simple.
Maybe thats cause its passed in as the NEXT argument to main()?
int main(int argc, char **argv, char **env);
:) No?
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx
http://strangesoft.net