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

Function strcmp

src/lib/string.c:89–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87}
88
89int strcmp(const char *s1, const char *s2)
90{
91 int r;
92
93 while ((r = (*s1 - *s2)) == 0 && *s1) {
94 s1++;
95 s2++;
96 }
97 return r;
98}
99
100int strncmp(const char *s1, const char *s2, size_t maxlen)
101{

Callers 15

find_imageFunction · 0.70
image_nodeFunction · 0.70
config_nodeFunction · 0.70
fdt_find_compatFunction · 0.70
fit_update_memoryFunction · 0.70
fit_loadFunction · 0.70
fmap_locate_areaFunction · 0.70
smbios_add_stringFunction · 0.70
qemu_aarch64_scan_busFunction · 0.50
fixup_macFunction · 0.50
fixup_memoryFunction · 0.50

Calls

no outgoing calls

Tested by 3

test_strcmpFunction · 0.40
fmap_create_testFunction · 0.40