MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / strchr

Function strchr

src/PowerPC_EABI_Support/src/MSL_C/MSL_Common/string.c:211–222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211char* strchr(const char* str, int chr)
212{
213 const u8* p = (u8*)str - 1;
214 u32 c = (chr & 0xFF);
215 u32 ch;
216
217 while (ch = *++p)
218 if (ch == c)
219 return ((char*)p);
220
221 return (c ? 0 : (char*)p);
222}
223
224void strcoll(void)
225{

Callers 2

__IPDecodeFromBase64Function · 0.85
__pformatterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected