MCPcopy Create free account
hub / github.com/cginternals/globjects / readInt

Function readInt

source/globjects/source/base/formatString.cpp:17–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15
16
17int readInt(const char* str, int & number)
18{
19 number = 0;
20 int read = 0;
21 char c;
22 while (isdigit(c = *str++))
23 {
24 number = 10 * number + (c - '0');
25 read++;
26 }
27
28 return read;
29}
30
31void parseFormat(std::ostream & stream, const char * & format)
32{

Callers 1

parseFormatFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected