Nut/OS  5.0.5
API Reference
getenv.c File Reference
#include <sys/environ.h>
Include dependency graph for getenv.c:

Functions

char * getenv (const char *name)
 Get the value of an environment variable.
char * nextenv (const char *name)
 Get the name of the next environment variable.

Function Documentation

char* getenv ( const char *  name)

Get the value of an environment variable.

Parameters:
namePoints to a string, which is the name of the variable.
Returns:
A pointer to a string containing the value. If the specified name cannot be found a null pointer will be returned.

References _NUTENVIRONMENT::env_value, findenv(), and NULL.

Referenced by MibRegisterSysVars().

Here is the call graph for this function:

char* nextenv ( const char *  name)

Get the name of the next environment variable.

Parameters:
namePoints 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.
Returns:
A pointer to a string containing the name of the next variable, or NULL if no more variables are available.

References _NUTENVIRONMENT::env_name, _NUTENVIRONMENT::env_next, findenv(), NULL, and nut_environ.

Here is the call graph for this function: