strrchr - Get pointer to last occurance of c in string s
| 162 | |
| 163 | // strrchr - Get pointer to last occurance of c in string s |
| 164 | char* strrchr(const char *s, int c) |
| 165 | { |
| 166 | const char* occ = nullptr; |
| 167 | while (*s) |
| 168 | if (*s++ == c) |
| 169 | occ = s; |
| 170 | return (char*)occ; |
| 171 | } |
| 172 | |
| 173 | // strspn - Get initial length of s1 including only the characters of s2 |
| 174 | size_t strspn(const char *s1, const char *s2) |
no outgoing calls
no test coverage detected