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

Function strrchr

payloads/libpayload/libc/string.c:210–220  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208 */
209
210char *strrchr(const char *s, int c)
211{
212 char *p = (char *)s + strlen(s);
213
214 for (; p >= s; p--) {
215 if (*p == c)
216 return p;
217 }
218
219 return NULL;
220}
221
222/**
223 * Duplicate a string.

Callers 1

pci_filter_parse_slotFunction · 0.50

Calls 1

strlenFunction · 0.85

Tested by

no test coverage detected