Hi!

2-Апр-2004 19:02 [EMAIL PROTECTED] (Aitor Santamari'a Merino) wrote to
[EMAIL PROTECTED]:

>>     DOS doesn't places command name into PSP, only rest of command line.
>>Command name (executable name and path) starting from DOS 3.x you may find
>>after regular environment.
ASM> Oops, it seems you're right. For some reason I believed that DOS copied
ASM> the commandline there (and the C RTLs obtained argv[] from there), but
ASM> checking the PSP documentation it seems I am wrong...

     argv[0] (with program name) C RTL gets from after environment. Though,
there may be variations: AFAIK, MSC extracts into argv[0] only program name
without path.




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
Freedos-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to