** Read a sequence of (hex)digits */
| 448 | ** Read a sequence of (hex)digits |
| 449 | */ |
| 450 | static int readdigits (RN *rn, int hex) { |
| 451 | int count = 0; |
| 452 | while ((hex ? isxdigit(rn->c) : isdigit(rn->c)) && nextc(rn)) |
| 453 | count++; |
| 454 | return count; |
| 455 | } |
| 456 | |
| 457 | |
| 458 | /* |