diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:07:29 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:07:29 -0500 |
| commit | 40e2986d3d196855bba3836a60a482fd3a0f73a8 (patch) | |
| tree | 6ce03ea7ddffb7f0001bff12706b21f9bce3c67e /src/string/strdup.c | |
| parent | 421cc9cd7295e5b92cf167a41bd8f55a3b842728 (diff) | |
remove posix and xopen specific functions
Diffstat (limited to 'src/string/strdup.c')
| -rw-r--r-- | src/string/strdup.c | 22 |
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) -*/ |
