Go to the source code of this file.
Functions | |
int | setenv (CONST char *name, CONST char *value, int force) |
Remove an environment variable. | |
void | unsetenv (CONST char *name) |
Remove an environment variable. |
int setenv | ( | CONST char * | name, | |
CONST char * | value, | |||
int | force | |||
) |
Remove an environment variable.
name | Points to a string, which is the name of the variable. | |
value | Points to a string, which is the value of the variable. | |
force | If not zero, existing values will be updated. |
Definition at line 94 of file setenv.c.
References _NUTENVIRONMENT::env_name, _NUTENVIRONMENT::env_next, _NUTENVIRONMENT::env_prev, _NUTENVIRONMENT::env_value, findenv(), free, malloc, memset(), nut_environ, strcmp(), strcpy(), and strlen().
Referenced by putenv().
void unsetenv | ( | CONST char * | name | ) |
Remove an environment variable.
name | Points to a string, which is the name of the variable to be removed. |
Definition at line 164 of file setenv.c.
References ENOENT, _NUTENVIRONMENT::env_name, _NUTENVIRONMENT::env_next, _NUTENVIRONMENT::env_prev, _NUTENVIRONMENT::env_value, errno, findenv(), free, and nut_environ.