~ubuntu-branches/ubuntu/feisty/fpc/feisty

« back to all changes in this revision

Viewing changes to fcl/netwlibc/ezcgi.inc

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2007-01-27 20:08:50 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070127200850-9mrptaqqjsx9nwa7
Tags: 2.0.4-5
* Fixed Build-Depends.
* Add myself to Uploaders in debian/control.
* Make sure that the sources are really patched before building them.
* Build unit 'libc' on powerpc too.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
    $Id: ezcgi.inc,v 1.2 2005/02/14 17:13:16 peter Exp $
3
 
    This file is part of the Free Pascal run time library.
4
 
    Copyright (c) 1999-2004 by Michael Van Canneyt
5
 
 
6
 
    See the file COPYING.FPC, included in this distribution,
7
 
    for details about the copyright.
8
 
 
9
 
    This program is distributed in the hope that it will be useful,
10
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12
 
 
13
 
 **********************************************************************}
14
 
 
15
 
 
16
 
 
17
 
{ Declared EXPLICITLY with Ansistring, so NO mistaking is possible }
18
 
 
19
 
FUNCTION _getenv (name : pchar) : pchar; cdecl; external 'libc' name 'getenv';
20
 
 
21
 
Function Getenv (Var EnvVar  : AnsiString): AnsiString;
22
 
 
23
 
Var P : Pchar;
24
 
 
25
 
begin
26
 
  P := _getenv (pchar(EnvVar));
27
 
  if p = nil then
28
 
    GetEnv := ''
29
 
  else
30
 
    GetEnv := strpas (P);
31
 
end;
32
 
 
33
 
{
34
 
  $Log: ezcgi.inc,v $
35
 
  Revision 1.2  2005/02/14 17:13:16  peter
36
 
    * truncate log
37
 
 
38
 
}