Go to the source code of this file.
Functions |
| static char * | name_eq_value (const char *name, const char *value) |
| static int | setenv (const char *name, const char *value, int overwrite) |
| int | explain_setenv_on_error (const char *name, const char *value, int overwrite) |
Variables |
| char ** | environ |
Function Documentation
The explain_setenv_on_error function is used to call the setenv(3) system call. On failure an explanation will be printed to stderr, obtained from the explain_setenv(3) function.
- Parameters:
-
| name | The name, exactly as to be passed to the setenv(3) system call. |
| value | The value, exactly as to be passed to the setenv(3) system call. |
| overwrite | The overwrite, exactly as to be passed to the setenv(3) system call. |
- Returns:
- The value returned by the wrapped setenv(3) system call.
- Example:
- This function is intended to be used in a fashion similar to the following example:
Definition at line 179 of file setenv_on_error.c.
| static char* name_eq_value |
( |
const char * |
name, |
|
|
const char * |
value |
|
) |
| [static] |
| static int setenv |
( |
const char * |
name, |
|
|
const char * |
value, |
|
|
int |
overwrite |
|
) |
| [static] |
Variable Documentation