#pragma once #ifndef INIFILE_H #define INIFILE_H #include "bool.h" //#include enum {inifile_cantread = -20}; typedef bool (*inifile_callback)(char* section, bool newsection, char* name, char* value); char* inifile_cleanstr(char* str); int64_t inifile_parseint(const char* str, bool issigned); bool inifile_read(const char* filename, inifile_callback callback); #endif