MCPcopy Create free account
hub / github.com/WheretIB/nullc / parseInteger

Function parseInteger

NULLC/Callbacks.cpp:344–354  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344int parseInteger(const char* str)
345{
346 unsigned int digit;
347 int a = 0;
348 while((digit = *str - '0') < 10)
349 {
350 a = a * 10 + digit;
351 str++;
352 }
353 return a;
354}
355
356long long parseLong(const char* s, const char* e, int base)
357{

Callers 3

parseDoubleFunction · 0.85
AddNumberNodeIntFunction · 0.85
CreateRedirectionTablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected