1cgiwrap_getenv(3) cgi/cgiwrap.h cgiwrap_getenv(3)
2
3
4
6 cgiwrap_getenv - the wrapper for getenv
7
9 #include <cgi/cgiwrap.h>
10
11
12 NEOERR *cgiwrap_getenv (const char *k, char **v);
13
14
15
16
18 k - the environment variable to lookup
19
20
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
31 v - a newly allocated copy of the value of that variable, or
32 NULL if not found.
33
34
36 cgiwrap_writevf(3), cgiwrap_write(3), cgiwrap_read(3), cgi‐
37 wrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_init_emu(3), cgi‐
38 wrap_getenv(3), cgiwrap_init_std(3), cgiwrap_writef
39
40
41
42ClearSilver 14 November 2006 cgiwrap_getenv(3)