Nut/OS  5.0.5
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:

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.

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

Here is the call graph for this function: