MCPcopy Create free account
hub / github.com/AHXR/ghost / ini_parse

Function ini_parse

_src/server/ini.cpp:196–207  ·  view source on GitHub ↗

See documentation in header file. */

Source from the content-addressed store, hash-verified

194
195/* See documentation in header file. */
196int ini_parse(const char* filename, ini_handler handler, void* user)
197{
198 FILE* file;
199 int error;
200
201 file = fopen(filename, "r");
202 if (!file)
203 return -1;
204 error = ini_parse_file(file, handler, user);
205 fclose(file);
206 return error;
207}
208
209/* An ini_reader function to read the next line from a string buffer. This
210 is the fgets() equivalent used by ini_parse_string(). */

Callers 1

INIReaderMethod · 0.85

Calls 1

ini_parse_fileFunction · 0.85

Tested by

no test coverage detected