According to John Michael Black:
There's been a lot of getenvs going around here lately. :) Has anyone found a method that works yet? The last thing posted about it gave this:
Function GetEnv ( Name: __CString__ ): PChar; C;
GPC does not recognize PChar -- at least ours doesn't.
You must *define* PChar first:
Type PChar = ^Char;
Perhaps you should try that Borland compatible GetEnv Function in the Tools Unit of BO5. See
ftp://kampi.hut.fi/jtv/gnu-pascal/turbo-alpha/bo5.zip
Greetings,
Peter
e-mail: peter.gerwinski@uni-essen.de home address: D"usseldorfer Str. 35, 45145 Essen, Germany WWW: http://agnes.dida.physik.uni-essen.de/~peter/