Nut/OS  4.10.3
API Reference
putenv.c File Reference
#include <sys/environ.h>
#include <sys/nutdebug.h>
#include <stdlib.h>
#include <string.h>
Include dependency graph for putenv.c:

Go to the source code of this file.

Functions

int putenv (CONST char *string)
 Add a new or update an existing environment variable.

Function Documentation

int putenv ( CONST char *  string)

Add a new or update an existing environment variable.

Parameters:
Pointsto a string of the form 'name=value'.
Returns:
0 upon successful completion. Otherwise, -1 is returned and errno is set to indicate the error.

Definition at line 50 of file putenv.c.

References free(), NUTASSERT, setenv(), strchr(), and strdup().

Here is the call graph for this function: