strchr - Get pointer to first occurance of c in string s
| 153 | |
| 154 | // strchr - Get pointer to first occurance of c in string s |
| 155 | char* 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 |
| 164 | char* strrchr(const char *s, int c) |
no outgoing calls
no test coverage detected