MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / xIniGetInt

Function xIniGetInt

src/SB/Core/x/xIni.cpp:174–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174S32 xIniGetInt(xIniFile* ini, char* tok, S32 def)
175{
176 S32 index = xIniGetIndex(ini, tok);
177 if (index == -1)
178 {
179 return def;
180 }
181 return atoi(ini->Values[index].val);
182}
183
184F32 xIniGetFloat(xIniFile* ini, char* tok, F32 def)
185{

Callers 1

zMainParseINIGlobalsFunction · 0.85

Calls 2

xIniGetIndexFunction · 0.85
atoiFunction · 0.85

Tested by

no test coverage detected