This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static uint32_t read_uint_value(const char *iter, uint32_t base) { | |
assert(base == 16 || base == 10); | |
uint32_t v = 0; | |
while (*iter != '\0' && *iter != ' ') { | |
char c = *iter; | |
switch (c) { | |
case '0': | |
case '1': | |
case '2': |