config.h File Reference

#include <stdio.h>
Include dependency graph for config.h:
This graph shows which files directly or indirectly include this file:

Functions

FILE * opencfg (char *name)
 Opens configuration file.
int goto_section (FILE *f, char *section)
 Sets cursor on begining of specified section.
char * getstr_param (FILE *f, const char *name)
 Gives value of simple string (without spaces) parameter. Deprecated.
char * getlstr_param (FILE *f, const char *name)
 Gives value of string parameter. Recommended to use.
int getint_param (FILE *f, const char *name)
 Gives value of integer parameter.
char getchr_param (FILE *f, const char *name)
 Gives value of character parameter.
void closecfg (FILE *f)
 Closes configuration file.

Function Documentation

void closecfg ( FILE *  f  ) 

Closes configuration file.

char getchr_param ( FILE *  f,
const char *  name 
)

Gives value of character parameter.

Parameters:
f - Name of file
name - Name of parameter

Here is the call graph for this function:

int getint_param ( FILE *  f,
const char *  name 
)

Gives value of integer parameter.

Parameters:
f - Name of file
name - Name of parameter

Here is the call graph for this function:

char* getlstr_param ( FILE *  f,
const char *  name 
)

Gives value of string parameter. Recommended to use.

Parameters:
f - Name of file
name - Name of parameter

Here is the call graph for this function:

char* getstr_param ( FILE *  f,
const char *  name 
)

Gives value of simple string (without spaces) parameter. Deprecated.

Parameters:
f - Name of file
name - Name of parameter
int goto_section ( FILE *  f,
char *  section 
)

Sets cursor on begining of specified section.

Parameters:
f - File
section - Name of section in Configuration file
Returns:
0 on success, -1 otherwise
FILE* opencfg ( char *  name  ) 

Opens configuration file.

Parameters:
name - Name of file
Generated on Mon Nov 15 10:26:45 2010 for Tales of Paraverse by  doxygen 1.6.3