| 188 | } |
| 189 | |
| 190 | int parse_uint32_base(uint32_t *pval, const char **pp, int base) |
| 191 | { |
| 192 | const char *p, *p1; |
| 193 | p = *pp; |
| 194 | while (isspace_nolf(*p)) |
| 195 | p++; |
| 196 | *pval = strtoul(p, (char **)&p1, base); |
| 197 | if (p1 == p) |
| 198 | return -1; |
| 199 | *pp = p1; |
| 200 | return 0; |
| 201 | } |
| 202 | |
| 203 | int parse_uint64_base(uint64_t *pval, const char **pp, int base) |
| 204 | { |
no test coverage detected