| 739 | } |
| 740 | |
| 741 | static int parse_uint8(unsigned char *out, const char **str) |
| 742 | { |
| 743 | int i; |
| 744 | if(parse_int(&i, str) != 0) return -1; |
| 745 | if(i < 0 || i > 0xff) return -1; |
| 746 | *out = i; |
| 747 | return 0; |
| 748 | } |
| 749 | |
| 750 | static int parse_uint16(unsigned short *out, const char **str) |
| 751 | { |
no test coverage detected