I have a doubt @ the storage of command line arguments.
myprog.exe -cfgfile myconfig.cfg
commandline args are passed when process gets created so are they
in Linux : command line arguments will get stored in stack. dont confuse environmental variable with command line args, process address space have separate memory area for environmental variables