mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2026-01-16 04:12:07 +01:00
15 lines
328 B
PHP
15 lines
328 B
PHP
Uses dos;
|
|
|
|
{ Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
|
|
|
|
{
|
|
This function is VERY inefficient, but the downsize would be to
|
|
have initialization/finalization code to get/free the environment
|
|
settings.
|
|
}
|
|
|
|
Function Getenv (Var EnvVar : AnsiString): AnsiString;
|
|
begin
|
|
Getenv:=dos.GetEnv(EnvVar);
|
|
end;
|