Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

cgiwrap_putenv(3) [debian man page]

cgiwrap_putenv(3)						   cgi/cgiwrap.h						 cgiwrap_putenv(3)

NAME
cgiwrap_putenv - wrap the putenv call SYNOPSIS
#include <cgi/cgiwrap.h> NEOERR *cgiwrap_putenv (const char *k, const char *v); ARGUMENTS
k - the env var name v - the new value for env var k DESCRIPTION
cgiwrap_putenv wraps the putenv call. This is mostly used by the cgi_debug_init function to create an artificial environment. This ver- sion differs from the system version by having separate arguments for the variable name and value, which makes life easier for the caller (usually), and keeps most wrapping callbacks from having to implement a parser to separate them. RETURN VALUE
None SEE ALSO
cgiwrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_init_emu(3), cgiwrap_writef(3), cgiwrap_init_std(3), cgiwrap_writevf(3), cgiwrap_read(3), cgiwrap_write(3), cgiwrap_getenv ClearSilver 12 July 2007 cgiwrap_putenv(3)

Check Out this Related Man Page

cgiwrap_getenv(3)						   cgi/cgiwrap.h						 cgiwrap_getenv(3)

NAME
cgiwrap_getenv - the wrapper for getenv SYNOPSIS
#include <cgi/cgiwrap.h> NEOERR *cgiwrap_getenv (const char *k, char **v); ARGUMENTS
k - the environment variable to lookup DESCRIPTION
cgiwrap_getenv wraps the getenv function for access to environment variables, which are used to pass data to CGI scripts. This version differs from the system getenv in that it makes a copy of the value it returns, which gets around problems when wrapping this routine in garbage collected/reference counted languages by moving the ownership of the data to the calling function. RETURN VALUE
v - a newly allocated copy of the value of that variable, or NULL if not found. SEE ALSO
cgiwrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_init_emu(3), cgiwrap_writef(3), cgiwrap_init_std(3), cgiwrap_writevf(3), cgiwrap_read(3), cgiwrap_write(3), cgiwrap_getenv ClearSilver 12 July 2007 cgiwrap_getenv(3)
Man Page

We Also Found This Discussion For You

1. Shell Programming and Scripting

BASH script to export var to env

Hi all I am trying to create a script that takes a password input then writes that to a tmp file and puts that tmp file path in my env as a var. It does everything but export the my env and I am unsure why. I am using Ubuntu 12.4 #!/bin/bash read -s -p "Enter Password: " gfpassword... (5 Replies)
Discussion started by: koikoi
5 Replies