[fpc-devel]1.9.4 / Linux / GetEnv

Marco van de Voort marcov at stack.nl
Tue Jun 15 11:06:16 CEST 2004


> I use the GetEnv function from the Linux unit quite often.  In version 1.9.4 
> it seems to have disappeared.  I browsed through the manuals, but did not 
> find an alternative  Has anybody got a suggestion?

In this case:

Use the OS dependant routines as much as possible, so
Sysutils.getenvironmentvariable

In general:
 
- Unit Linux is totally deprecated, but available as oldlinux (but I advise
seriously against using it)
- Most similar calls are prefixed with "fp" and are in units unix and baseunix,
 however note that the errorhandling is now C compatible. 

See also
http://www.stack.nl/~marcov/unixrtl.pdf 




More information about the fpc-devel mailing list