ezcgi.inc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 1999-2000 by Michael Van Canneyt
  5. See the file COPYING.FPC, included in this distribution,
  6. for details about the copyright.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  10. **********************************************************************}
  11. Uses Linux;
  12. { Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
  13. Function Getenv (Var EnvVar : AnsiString): AnsiString;
  14. Var P : Pchar;
  15. begin
  16. // Linux version returns pchar.
  17. p:=linux.getenv(EnvVar);
  18. if P<>nil then
  19. getenv:=strpas(p)
  20. else
  21. getenv:='';
  22. end;
  23. {
  24. $Log$
  25. Revision 1.2 2000-10-26 22:30:21 peter
  26. * freebsd update
  27. * classes.rst
  28. Revision 1.1.2.1 2000/10/25 12:36:24 marco
  29. * Split up Freebsd/Unix/Linux for Fixes FCL
  30. Revision 1.1 2000/07/13 06:31:32 michael
  31. + Initial import
  32. Revision 1.7 2000/02/15 22:03:38 sg
  33. * Inserted wrong copyright notice ;) Fixed.
  34. Revision 1.6 2000/02/15 21:57:51 sg
  35. * Added copyright notice and CVS log tags where necessary
  36. }