[cap-talk] object-oriented-security.org
John R. Strohm
strohm at airmail.net
Fri Mar 5 19:16:47 PST 2010
"Dirk Pranke" <dpranke at chromium.org> said, on:Friday, March 05, 2010 4:56 PM:
> The only alternative to this that I know of would be something that
> replaced main(argc, argv) with main(argc, argv, env) where env holds
> all the references, and then env gets passed to every function and
> every constructor that might need it.
You just tickled a memory.
MS-DOS and Windows C/C++ programming allows main() to be defined with zero, two,
or three arguments. The third argument receives a pointer to the environment
table.
See http://msdn.microsoft.com/en-us/library/k104fy6h.aspx for more details.
More information about the cap-talk
mailing list