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

Function strstr

src/lib/string.c:142–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142char *strstr(const char *haystack, const char *needle)
143{
144 size_t needle_len = strlen(needle);
145 for (; *haystack; haystack++) {
146 if (!strncmp(haystack, needle, needle_len))
147 return (char *)haystack;
148 }
149 return NULL;
150}
151
152char *strtok_r(char *str, const char *delim, char **ptr)
153{

Callers 14

smbios_system_skuFunction · 0.50
cr50_parse_fw_versionFunction · 0.50
is_pcie_domainFunction · 0.50
is_ioat_domainFunction · 0.50
is_ubox_domainFunction · 0.50
is_cxl_domainFunction · 0.50
get_lineFunction · 0.50
get_chipFunction · 0.50
emit_chip_headersFunction · 0.50

Calls 2

strlenFunction · 0.85
strncmpFunction · 0.70

Tested by

no test coverage detected