summaryrefslogtreecommitdiff
path: root/src/string/strdup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/string/strdup.c')
-rw-r--r--src/string/strdup.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/string/strdup.c b/src/string/strdup.c
deleted file mode 100644
index ecd671db..00000000
--- a/src/string/strdup.c
+++ /dev/null
@@ -1,22 +0,0 @@
-#include <string.h>
-#include <stdlib.h>
-#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)
-*/