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

Function strtol

payloads/libpayload/libc/string.c:385–393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

383}
384
385long int strtol(const char *ptr, char **endptr, int base)
386{
387 long long int val = strtoll(ptr, endptr, base);
388 if (val > LONG_MAX)
389 return LONG_MAX;
390 if (val < LONG_MIN)
391 return LONG_MIN;
392 return val;
393}
394
395long atol(const char *nptr)
396{

Callers 15

atolFunction · 0.70
pci_filter_parse_slotFunction · 0.50
new_layoutFunction · 0.50
mainFunction · 0.50
set_randconfig_seedFunction · 0.50
conf_set_all_new_symbolsFunction · 0.50
get_deviceFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
get_line_as_intFunction · 0.50
parse_loglevelFunction · 0.50
bios_fw_type_lookupFunction · 0.50

Calls 1

strtollFunction · 0.70

Tested by 2

get_deviceFunction · 0.40
mainFunction · 0.40