mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-23 06:51:44 +02:00
35 lines
853 B
PHP
35 lines
853 B
PHP
{
|
|
$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 }
|
|
|
|
function GetEnv (var EnvVar: AnsiString): AnsiString;
|
|
|
|
var P: PChar;
|
|
|
|
begin
|
|
if DosScanEnv (PChar (EnvVar), P) = 0 then GetEnv := P else GetEnv := '';
|
|
end;
|
|
|
|
{
|
|
$Log$
|
|
Revision 1.8 2005-02-14 17:13:16 peter
|
|
* truncate log
|
|
|
|
}
|