ezcgi.inc 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 RC: longint;
  16. P: PChar;
  17. begin
  18. RC := DosScanEnv (PChar (EnvVar), P);
  19. GetEnv := P;
  20. end;
  21. {
  22. $Log$
  23. Revision 1.4 2000-10-28 16:56:02 hajny
  24. + real (ansistring) implementation
  25. Revision 1.3 2000/08/25 17:33:44 hajny
  26. * Made compilable again (missing bracket at the begin of logs)
  27. Revision 1.2 2000/07/13 11:33:01 michael
  28. + removed logs
  29. }