MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Ini_GetInteger

Function Ini_GetInteger

src/ini.c:146–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146int Ini_GetInteger(const char *category, const char *key, int defaultValue, char *source)
147{
148 char value[16];
149 char buffer[16];
150
151 sprintf(value, "%d", defaultValue);
152
153 Ini_GetString(category, key, value, buffer, 15, source);
154 return atoi(buffer);
155}
156
157void Ini_SetString(const char *category, const char *key, const char *value, char *source)
158{

Callers 3

Scenario_Load_GeneralFunction · 0.85
Scenario_Load_HouseFunction · 0.85
IniFile_GetIntegerFunction · 0.85

Calls 1

Ini_GetStringFunction · 0.85

Tested by

no test coverage detected