| 342 | } |
| 343 | |
| 344 | int 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 | |
| 356 | long long parseLong(const char* s, const char* e, int base) |
| 357 | { |
no outgoing calls
no test coverage detected