#include #include #include "_safety.h" char * strdup(const char *s) { SIGNAL_SAFE(0); size_t len = strlen(s); char *ret = malloc(len + 1); if (ret) { strcpy(ret, s); } return ret; } __check_1(char *, 0, strdup, const char *) /* XOPEN(400) POSIX(200809) */