FACT++  1.0
char * DimUtil::getEnvVar ( char *  varName)
static

Definition at line 118 of file dimcpp.cxx.

References dim_get_env_var(), and size.

Referenced by main().

119 {
120  int size;
121 
122  size = dim_get_env_var(name, 0, 0);
123  if(!size)
124  return (char *)0;
125  if((itsBufferSize < size ) && (itsBufferSize != 0))
126  {
127  delete[] itsBuffer;
128  itsBufferSize = 0;
129  }
130  if(!itsBufferSize)
131  {
132  itsBuffer = new char[size];
134  }
136  return itsBuffer;
137 }
dim_get_env_var("EXTRA_DNS_NODE", extra_dns, sizeof(extra_dns))
static int itsBufferSize
Definition: dim.hxx:57
static char * itsBuffer
Definition: dim.hxx:56
int size
Definition: db_dim_server.c:17

+ Here is the call graph for this function:

+ Here is the caller graph for this function: