//INI parser in C--, GPL licence. //Copyright 2008 by Leency #define COMMENT 0 #define SECTION 1 #define PARAM 2 #define OPTION 3 void GetIni(dword inipath) { byte section[32]='', parametr[32]='', option[256]='', InfType=0; word bukva[1]; dword buff, fsize, tj; //читаем файл buff = malloc(1048576); ReadFile(0, 1048576, buff, inipath); IF (EAX<>6) {WriteDebug("INI-file not found. Defaults will be used."); goto INI_END;} fsize=EBX; //парсим его for (tj=0; tj