| 758 | |
| 759 | #ifdef __STRICT_ANSI__ |
| 760 | char* strdup(const char* s) { |
| 761 | size_t l = strlen(s) + 1; |
| 762 | char* p = malloc(l); |
| 763 | |
| 764 | memcpy(p, s, l); |
| 765 | return p; |
| 766 | } |
| 767 | #endif /* __STRICT_ANSI__ */ |
| 768 | |
| 769 | #endif |
no outgoing calls
no test coverage detected