MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / getnum

Function getnum

src/inputdevice.cpp:1154–1172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1152}
1153
1154static int getnum (const TCHAR **pp)
1155{
1156 const TCHAR *p = *pp;
1157 int v;
1158
1159 if (!_tcsnicmp (p, _T("false"), 5))
1160 v = 0;
1161 else if (!_tcsnicmp (p, _T("true"), 4))
1162 v = 1;
1163 else
1164 v = _tstol (p);
1165
1166 while (*p != 0 && *p !='.' && *p != ',' && *p != '=')
1167 p++;
1168 if (*p == '.' || *p == ',')
1169 p++;
1170 *pp = p;
1171 return v;
1172}
1173static TCHAR *getstring (const TCHAR **pp)
1174{
1175 int i;

Callers 3

read_inputdevice_configFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected