MCPcopy Create free account
hub / github.com/WheretIB/nullc / strstr

Function strstr

NULLC/includes/string.cpp:7–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace NULLCString
6{
7 int strstr(NULLCArray string, NULLCArray substring)
8 {
9 if(!string.ptr || !substring.ptr)
10 return -1;
11 const char *pos = ::strstr(string.ptr, substring.ptr);
12 return pos ? int(pos - string.ptr) : -1;
13 }
14 int strchr(NULLCArray string, char ch)
15 {
16 if(!string.ptr)

Callers 11

WndProcFunction · 0.85
ImportModuleMethod · 0.85
mainFunction · 0.85
mainFunction · 0.85
RunCodeMethod · 0.85
TEST_FOR_FAILFunction · 0.85
TEST_FOR_FAIL_GENERICFunction · 0.85
RunMethod · 0.85
RunMethod · 0.85
RunMethod · 0.85
find_substringFunction · 0.85

Calls

no outgoing calls

Tested by 6

RunCodeMethod · 0.68
TEST_FOR_FAILFunction · 0.68
TEST_FOR_FAIL_GENERICFunction · 0.68
RunMethod · 0.68
RunMethod · 0.68
RunMethod · 0.68