[comp.lang.pascal] Getting environment in TP

rbw@williams.edu (12/15/88)

Todd Kirschbaum (kirsch@braggvax.arpa) posted an answer to how to get
the environment variables in Turbo Pascal.  His solution will work for
TP3.0, and I believe certain cases of TP4.0, but in TP4.0 you should 
use the PrefixSeg "constant" rather than "Cseg".  The code segment may
change, for instance if you are in a unit, while PrefixSeg will always
point to the PSP.

-Richard Ward
rbw@cs.williams.edu		Williams College, Williamstown, MA

rbw%WILLIAMS.EDU%CUNYVM.CUNY.EDU@cunyvm.cuny.edu (12/17/88)

Todd Kirschbaum (kirsch@braggvax.arpa) posted an answer to how to get
the environment variables in Turbo Pascal.  His solution will work for
TP3.0, and I believe certain cases of TP4.0, but in TP4.0 you should
use the PrefixSeg "constant" rather than "Cseg".  The code segment may
change, for instance if you are in a unit, while PrefixSeg will always
point to the PSP.

-Richard Ward
rbw@cs.williams.edu        Williams College, Williamstown, MA