#include <dev/nvmem.h>#include <stdint.h>#include <stdlib.h>#include <string.h>#include <errno.h>#include <memdebug.h>#include <sys/environ.h>#include <cfg/crt.h>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. |
References _NUTENVIRONMENT::env_name, _NUTENVIRONMENT::env_next, _NUTENVIRONMENT::env_prev, _NUTENVIRONMENT::env_value, findenv(), free(), malloc(), memset(), NULL, nut_environ, strcmp(), and strdup().
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. |
References ENOENT, _NUTENVIRONMENT::env_name, _NUTENVIRONMENT::env_next, _NUTENVIRONMENT::env_prev, _NUTENVIRONMENT::env_value, errno, findenv(), free(), NULL, and nut_environ.