ezcgi.inc 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.6 2001-02-26 04:57:38 hajny
  22. * correction of a previously introduced bug
  23. Revision 1.1.2.2 2001/01/28 18:41:07 hajny
  24. * error checking added
  25. Revision 1.1.2.1 2000/10/28 16:56:43 hajny
  26. + real (ansistring) implementation
  27. }