getting/setting environment variables

Thu, 10 Oct 1996 11:12:18 +0100 (MET)


According to John Michael Black:
> Okay, here's another question.  Is there a standard in Pascal that
> retrieves and/or sets environment variables, like C's getenv()?  If not, I
> suppose I would declare and external procedure just like the others.

I don't know of a de-jure Pascal standard for getenv().
Borland uses the C standard: Function GetEnv ( Index: String ): String;
The "Tools" Unit of BO5 implements Borland's GetEnv by using C's one,

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/


Peter Gerwinski (peter@agnes.dida.physik.uni-essen.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es