Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
56
unsigned 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
vtxprintf
Function · 0.85
overwrite_kernel_loglevel
Function · 0.85
cr50_parse_fw_version
Function · 0.85
dt_fixup_external
Function · 0.85
read_ver_field
Function · 0.85
smbios_ec_revision
Function · 0.85
test_skip_atoi
Function · 0.85
Calls
1
isdigit
Function · 0.50
Tested by
1
test_skip_atoi
Function · 0.68