| 140 | } |
| 141 | |
| 142 | char *strstr(const char *haystack, const char *needle) |
| 143 | { |
| 144 | size_t needle_len = strlen(needle); |
| 145 | for (; *haystack; haystack++) { |
| 146 | if (!strncmp(haystack, needle, needle_len)) |
| 147 | return (char *)haystack; |
| 148 | } |
| 149 | return NULL; |
| 150 | } |
| 151 | |
| 152 | char *strtok_r(char *str, const char *delim, char **ptr) |
| 153 | { |
no test coverage detected