Main Page | Modules | Data Structures | Directories | File List | Data Fields

Environment


Functions

int u_env_init (const char *prefix, const char *cfile)
 Load configuration environment.
const char * u_env_var (const char *name)
 Get a configuration variable value.

Function Documentation

int u_env_init const char *  prefix,
const char *  cfile
 

Parameters:
prefix variables namespace
cfile configuration file
Load all configuration variables in the given prefix namespace from the configuration file cfile into the environment of the calling process. Complex parameter substitution, conditional evaluations, arithmetics, etc. is done by the shell: the caller has a simple name=value view of the configuration file.

Returns:
  • 0 on success
  • non-zero on failure

Definition at line 40 of file env.c.

const char* u_env_var const char *  name  ) 
 

Return a configuration variable

Parameters:
name the name of the variable to get
Returns:
the value of the requested variable or NULL if the variable is not defined

Definition at line 88 of file env.c.


←Products
© 2005-2007 - KoanLogic S.r.l. - All rights reserved