Hi Andreas,

By the way, can anybody tell me, how to access environment variables,
when the compiler doesn't support it? (no getenv() and environ=NULL)

Use INT 21h, AH=62h to get the PSP segment and then see the word at offset 002Ch for the segment of environment variables. (See Table 01378 in the Ralf Brown Interrupt List for the PSP structure).

Joe
--
KOVÁCS Balázs aka Joe Forster/STA; s...@c64.rulez.org; http://sta.c64.org
Don't E-mail spam, HTML or uncompressed files! More contacts on homepage
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to