Nut/OS  5.0.5
API Reference
environ.c File Reference
#include <dev/nvmem.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <memdebug.h>
#include <sys/nutdebug.h>
#include <sys/environ.h>
Include dependency graph for environ.c:

Functions

NUTENVIRONMENTfindenv (const char *name)
 Find an NUTENVIRONMENT entry by name.

Variables

NUTENVIRONMENTnut_environ

Function Documentation

NUTENVIRONMENT* findenv ( const char *  name)

Find an NUTENVIRONMENT entry by name.

Parameters:
namePoints to a string, which is the name of the entry.
Returns:
A pointer to the entry with the specified name. If the name cannot be found, then a null pointer is returned.

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().

Here is the call graph for this function:


Variable Documentation