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

Function readintx

src/debug.cpp:962–979  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

960#endif
961
962static bool readintx (TCHAR **c, uae_u32 *valp)
963{
964 uae_u32 val = 0;
965 TCHAR nc;
966 int negative = 0;
967
968 ignore_ws (c);
969 negative = checkisneg(c);
970 if (!isdigit (peekchar (c)))
971 return false;
972 while (isdigit (nc = **c)) {
973 (*c)++;
974 val *= 10;
975 val += nc - '0';
976 }
977 *valp = val * (negative ? -1 : 1);
978 return true;
979}
980
981static int checkvaltype2(TCHAR **c, uae_u32 *val, debugfloatx80 *valx80, TCHAR def)
982{

Callers 2

checkvaltype2Function · 0.85
converterFunction · 0.85

Calls 4

ignore_wsFunction · 0.85
checkisnegFunction · 0.85
peekcharFunction · 0.85
readnumFunction · 0.85

Tested by

no test coverage detected