MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / strrchr

Function strrchr

Kernel/src/string.cpp:164–171  ·  view source on GitHub ↗

strrchr - Get pointer to last occurance of c in string s

Source from the content-addressed store, hash-verified

162
163// strrchr - Get pointer to last occurance of c in string s
164char* strrchr(const char *s, int c)
165{
166 const char* occ = nullptr;
167 while (*s)
168 if (*s++ == c)
169 occ = s;
170 return (char*)occ;
171}
172
173// strspn - Get initial length of s1 including only the characters of s2
174size_t strspn(const char *s1, const char *s2)

Callers 3

SaveImageFunction · 0.85
ResolveParentFunction · 0.85
BaseNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected