#include <stdio.h>
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. |
void closecfg | ( | FILE * | f | ) |
Closes configuration file.
char getchr_param | ( | FILE * | f, | |
const char * | name | |||
) |
Gives value of character parameter.
f | - Name of file | |
name | - Name of parameter |
int getint_param | ( | FILE * | f, | |
const char * | name | |||
) |
Gives value of integer parameter.
f | - Name of file | |
name | - Name of parameter |
char* getlstr_param | ( | FILE * | f, | |
const char * | name | |||
) |
Gives value of string parameter. Recommended to use.
f | - Name of file | |
name | - Name of parameter |
char* getstr_param | ( | FILE * | f, | |
const char * | name | |||
) |
Gives value of simple string (without spaces) parameter. Deprecated.
f | - Name of file | |
name | - Name of parameter |
int goto_section | ( | FILE * | f, | |
char * | section | |||
) |
Sets cursor on begining of specified section.
f | - File | |
section | - Name of section in Configuration file |
FILE* opencfg | ( | char * | name | ) |
Opens configuration file.
name | - Name of file |