liblcf
|
Go to the source code of this file.
Macros | |
#define | MAX_LINE 200 |
#define | MAX_SECTION 50 |
#define | MAX_NAME 50 |
Functions | |
static unsigned char * | rstrip (unsigned char *s) |
static char * | lskip (const unsigned char *s) |
static char * | find_char_or_comment (const unsigned char *s, char c) |
static char * | strncpy0 (char *dest, const char *src, size_t size) |
int | ini_parse (const char *filename, int(*handler)(void *, const char *, const char *, const char *), void *user) |
#define MAX_LINE 200 |
Definition at line 41 of file ini.cpp.
Referenced by ini_parse().
#define MAX_NAME 50 |
Definition at line 43 of file ini.cpp.
Referenced by ini_parse().
#define MAX_SECTION 50 |
Definition at line 42 of file ini.cpp.
Referenced by ini_parse().
|
static |
Definition at line 73 of file ini.cpp.
Referenced by ini_parse().
int ini_parse | ( | const char * | filename, |
int(*)(void *, const char *, const char *, const char *) | handler, | ||
void * | user | ||
) |
Definition at line 94 of file ini.cpp.
References find_char_or_comment(), lskip(), MAX_LINE, MAX_NAME, MAX_SECTION, rstrip(), and strncpy0().
Referenced by INIReader::INIReader().
|
static |
Definition at line 61 of file ini.cpp.
Referenced by ini_parse().
|
static |
Strip whitespace chars off end of given string, in place.
Definition at line 50 of file ini.cpp.
Referenced by ini_parse().
|
static |
Version of strncpy that ensures dest (size bytes) is null-terminated.
Definition at line 86 of file ini.cpp.
Referenced by ini_parse().