| 338 | /* Return the "value" of the character in the given base */ |
| 339 | |
| 340 | static int _offset(char ch, int base) |
| 341 | { |
| 342 | if (ch >= '0' && ch <= '9') |
| 343 | return ch - '0'; |
| 344 | else |
| 345 | return 10 + tolower(ch) - 'a'; |
| 346 | } |
| 347 | |
| 348 | /** |
| 349 | * Convert the initial portion of a string into a signed int |