| 5 | namespace 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) |
no outgoing calls