1cgiwrap_getenv(3)                cgi/cgiwrap.h               cgiwrap_getenv(3)
2
3
4

NAME

6       cgiwrap_getenv  - the wrapper for getenv
7

SYNOPSIS

9       #include <cgi/cgiwrap.h>
10
11
12       NEOERR *cgiwrap_getenv (const char *k, char **v);
13
14
15
16

ARGUMENTS

18       k - the environment variable to lookup
19
20

DESCRIPTION

22       cgiwrap_getenv  wraps  the  getenv  function  for access to environment
23       variables, which are used to pass data to CGI  scripts.   This  version
24       differs  from the system getenv in that it makes a copy of the value it
25       returns, which gets around  problems  when  wrapping  this  routine  in
26       garbage  collected/reference  counted languages by moving the ownership
27       of the data to the calling function.
28
29

RETURN VALUE

31       v - a newly allocated copy of the value of that variable, or
32       NULL if not found.
33
34

SEE ALSO

36       cgiwrap_iterenv(3),   cgiwrap_putenv(3),   cgiwrap_init_emu(3),    cgi‐
37       wrap_writef(3),     cgiwrap_init_std(3),    cgiwrap_writevf(3),    cgi‐
38       wrap_read(3), cgiwrap_write(3), cgiwrap_getenv
39
40
41
42ClearSilver                      12 July 2007                cgiwrap_getenv(3)
Impressum