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

Function strchr

Kernel/src/string.cpp:155–161  ·  view source on GitHub ↗

strchr - Get pointer to first occurance of c in string s

Source from the content-addressed store, hash-verified

153
154// strchr - Get pointer to first occurance of c in string s
155char* strchr(const char *s, int c)
156{
157 while (*s != (char)c)
158 if (!*s++)
159 return 0;
160 return (char*)s;
161}
162
163// strrchr - Get pointer to last occurance of c in string s
164char* strrchr(const char *s, int c)

Callers 15

DoAnsiSGRFunction · 0.85
DoAnsiCSIFunction · 0.85
RefreshMethod · 0.85
LoadTextMethod · 0.85
DoAnsiSGRFunction · 0.85
DoAnsiCSIFunction · 0.85
ParseLineFunction · 0.85
RunFunction · 0.85
strspnFunction · 0.85
strcspnFunction · 0.85
SysInterfaceConnectFunction · 0.85
ResolveServiceNameMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected