Apache Portable Runtime
Functions
Functions for manipulating the environment
Apache Portability Runtime library

Functions

apr_status_t apr_env_get (char **value, const char *envvar, apr_pool_t *pool)
apr_status_t apr_env_set (const char *envvar, const char *value, apr_pool_t *pool)
apr_status_t apr_env_delete (const char *envvar, apr_pool_t *pool)

Function Documentation

apr_status_t apr_env_delete ( const char *  envvar,
apr_pool_t pool 
)

Delete a variable from the environment

Parameters:
envvarthe name of the environment variable
poolwhere to allocate temporary storage from
apr_status_t apr_env_get ( char **  value,
const char *  envvar,
apr_pool_t pool 
)

Get the value of an environment variable

Parameters:
valuethe returned value, allocated from pool
envvarthe name of the environment variable
poolwhere to allocate value and any temporary storage from
apr_status_t apr_env_set ( const char *  envvar,
const char *  value,
apr_pool_t pool 
)

Set the value of an environment variable

Parameters:
envvarthe name of the environment variable
valuethe value to set
poolwhere to allocate temporary storage from
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines