ezcgi.inc 987 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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.7 2000-02-15 22:03:38 sg
  26. * Inserted wrong copyright notice ;) Fixed.
  27. Revision 1.6 2000/02/15 21:57:51 sg
  28. * Added copyright notice and CVS log tags where necessary
  29. }