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

Function strncmp

src/lib/string.c:100–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100int strncmp(const char *s1, const char *s2, size_t maxlen)
101{
102 size_t i;
103
104 for (i = 0; i < maxlen; i++) {
105 if ((s1[i] != s2[i]) || (s1[i] == '\0'))
106 return s1[i] - s2[i];
107 }
108
109 return 0;
110}
111
112size_t strspn(const char *str, const char *spn)
113{

Callers 15

fit_check_compatFunction · 0.70
strstrFunction · 0.70
search_forFunction · 0.70
hynix_dram_cmos_checkFunction · 0.50
is_runtime_dataFunction · 0.50
valid_rsdpFunction · 0.50
acpi_find_wakeup_vectorFunction · 0.50
wifi_regulatory_domainFunction · 0.50
get_wifi_sar_limitsFunction · 0.50
hwilib_find_blocksFunction · 0.50
smbios_write_type43_tpmFunction · 0.50

Calls

no outgoing calls

Tested by 1

test_strncmpFunction · 0.40