putenv.c File Reference

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:
Points to 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 49 of file putenv.c.

References free, malloc, setenv(), strchr(), strcpy(), and strlen().


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/