Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
89
int 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
100
int strncmp(const char *s1, const char *s2, size_t maxlen)
101
{
Callers
15
find_image
Function · 0.70
image_node
Function · 0.70
config_node
Function · 0.70
fdt_find_compat
Function · 0.70
fit_update_memory
Function · 0.70
fit_load
Function · 0.70
find_cbfs_preload_context
Function · 0.70
fmap_locate_area
Function · 0.70
smbios_add_string
Function · 0.70
qemu_aarch64_scan_bus
Function · 0.50
fixup_mac
Function · 0.50
fixup_memory
Function · 0.50
Calls
no outgoing calls
Tested by
3
test_strcmp
Function · 0.40
fmap_create_test
Function · 0.40
fmap_flags_to_string_test
Function · 0.40