| Revision: | 451 | 
| Committed: | Sun Jul 26 12:04:44 2009 UTC (16 years, 3 months ago) by rossy | 
| Content type: | text/x-chdr | 
| Original Path: | Daodan/src/inifile.h | 
| File size: | 401 byte(s) | 
| Log Message: | bsl thingy | 
| # | Content | 
|---|---|
| 1 | #pragma once | 
| 2 | #ifndef INIFILE_H | 
| 3 | #define INIFILE_H | 
| 4 | |
| 5 | #include <stdbool.h> | 
| 6 | #include <stdint.h> | 
| 7 | |
| 8 | enum {inifile_cantread = -20}; | 
| 9 | |
| 10 | typedef bool (*inifile_callback)(char* section, bool newsection, char* name, char* value); | 
| 11 | |
| 12 | char* inifile_cleanstr(char* str); | 
| 13 | int64_t inifile_parseint(const char* str, bool issigned); | 
| 14 | bool inifile_read(const char* filename, inifile_callback callback); | 
| 15 | |
| 16 | #endif |