From 40e2986d3d196855bba3836a60a482fd3a0f73a8 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Wed, 31 Jan 2024 17:07:29 -0500 Subject: remove posix and xopen specific functions --- src/string/strdup.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/string/strdup.c (limited to 'src/string/strdup.c') 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 -#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) -*/ -- cgit v1.2.1