ezcgi.inc 872 B

12345678910111213141516171819202122232425262728293031323334
  1. {
  2. $Id$
  3. This file is part of the Free Component Library (FCL)
  4. Copyright (c) 1999-2000 by Michael Van Canneyt and Florian Klaempfl
  5. Classes unit for OS/2
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. Uses DosCalls;
  13. { Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
  14. function GetEnv (var EnvVar: AnsiString): AnsiString;
  15. var P: PChar;
  16. begin
  17. if DosScanEnv (PChar (EnvVar), P) = 0 then GetEnv := P else GetEnv := '';
  18. end;
  19. {
  20. $Log$
  21. Revision 1.7 2002-09-07 15:15:27 peter
  22. * old logs removed and tabs fixed
  23. }