MCPcopy Create free account
hub / github.com/coreboot/coreboot / skip_atoi

Function skip_atoi

src/commonlib/bsd/string.c:56–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56unsigned int skip_atoi(char **ptr)
57{
58 unsigned int result = 0;
59 char *str;
60
61 for (str = *ptr; isdigit(str[0]); str++)
62 result = result * 10 + (str[0] - '0');
63 *ptr = str;
64 return result;
65}

Callers 7

vtxprintfFunction · 0.85
cr50_parse_fw_versionFunction · 0.85
dt_fixup_externalFunction · 0.85
read_ver_fieldFunction · 0.85
smbios_ec_revisionFunction · 0.85
test_skip_atoiFunction · 0.85

Calls 1

isdigitFunction · 0.50

Tested by 1

test_skip_atoiFunction · 0.68