|
@@ -1,14 +1,37 @@
|
|
-Uses Dos;
|
|
|
|
|
|
+{
|
|
|
|
+ $Id$
|
|
|
|
+ This file is part of the Free Component Library (FCL)
|
|
|
|
+ Copyright (c) 1999-2000 by Michael Van Canneyt and Florian Klaempfl
|
|
|
|
+
|
|
|
|
+ Classes unit for OS/2
|
|
|
|
+
|
|
|
|
+ See the file COPYING.FPC, included in this distribution,
|
|
|
|
+ for details about the copyright.
|
|
|
|
+
|
|
|
|
+ This program is distributed in the hope that it will be useful,
|
|
|
|
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
+
|
|
|
|
+ **********************************************************************}
|
|
|
|
+
|
|
|
|
+Uses DosCalls;
|
|
|
|
|
|
{ Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
|
|
{ Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
|
|
|
|
|
|
-Function Getenv (Var EnvVar : AnsiString): AnsiString;
|
|
|
|
|
|
+function GetEnv (var EnvVar: AnsiString): AnsiString;
|
|
|
|
+
|
|
|
|
+var RC: longint;
|
|
|
|
+ P: PChar;
|
|
|
|
|
|
begin
|
|
begin
|
|
- Result:=Dos.Getenv(EnvVar);
|
|
|
|
|
|
+ RC := DosScanEnv (PChar (EnvVar), P);
|
|
|
|
+ GetEnv := P;
|
|
end;
|
|
end;
|
|
|
|
+
|
|
|
|
+{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.2 2000-07-13 11:33:01 michael
|
|
|
|
- + removed logs
|
|
|
|
|
|
+ Revision 1.1.2.1 2000-10-28 16:56:43 hajny
|
|
|
|
+ + real (ansistring) implementation
|
|
|
|
+
|
|
|
|
|
|
}
|
|
}
|