| 160 | } |
| 161 | |
| 162 | char *strdup(const char *s) |
| 163 | { |
| 164 | char *news = (char *)malloc(strlen(s) + 1); |
| 165 | |
| 166 | if (news) |
| 167 | { |
| 168 | strcpy(news, s); |
| 169 | } |
| 170 | |
| 171 | return news; |
| 172 | } |
| 173 | |
| 174 | char *strndup(const char *s, size_t size) |
| 175 | { |
no test coverage detected