Go to the source code of this file.
Data Structures | |
struct | _NUTENVIRONMENT |
Defines | |
#define | ENVIRON_EE_OFFSET 256 |
#define | MAX_ENVIRON_ITEM_SIZE 64 |
#define | ENVIRON_MAGIC 0x00564E45 |
Typedefs | |
typedef struct _NUTENVIRONMENT | NUTENVIRONMENT |
Functions | |
NUTENVIRONMENT * | findenv (const char *name) |
Find an NUTENVIRONMENT entry by name. | |
char * | nextenv (const char *name) |
Get the name of the next environment variable. | |
char * | getenv (const char *name) |
Get the value of an environment variable. | |
Variables | |
NUTENVIRONMENT * | nut_environ |
#define ENVIRON_EE_OFFSET 256 |
Referenced by findenv().
#define MAX_ENVIRON_ITEM_SIZE 64 |
Referenced by findenv().
#define ENVIRON_MAGIC 0x00564E45 |
Referenced by findenv().
typedef struct _NUTENVIRONMENT NUTENVIRONMENT |
NUTENVIRONMENT* findenv | ( | const char * | name | ) |
Find an NUTENVIRONMENT entry by name.
name | Points to a string, which is the name of the entry. |
References _NUTENVIRONMENT::env_name, _NUTENVIRONMENT::env_next, _NUTENVIRONMENT::env_prev, _NUTENVIRONMENT::env_value, ENVIRON_EE_OFFSET, ENVIRON_MAGIC, free(), malloc(), MAX_ENVIRON_ITEM_SIZE, memset(), NULL, NUTASSERT, NutNvMemLoad(), strcmp(), and strcpy().
Referenced by getenv(), nextenv(), setenv(), and unsetenv().
char* nextenv | ( | const char * | name | ) |
Get the name of the next environment variable.
name | Points to a string, which is the name of the previous variable. If this pointer is NULL or points to an empty string, then the name of the first variable is returned. |
References _NUTENVIRONMENT::env_name, _NUTENVIRONMENT::env_next, findenv(), NULL, and nut_environ.
char* getenv | ( | const char * | name | ) |
Get the value of an environment variable.
name | Points to a string, which is the name of the variable. |
References _NUTENVIRONMENT::env_value, findenv(), and NULL.
Referenced by MibRegisterSysVars().
Referenced by nextenv(), setenv(), and unsetenv().