From c43ef2aedd0b2be3236e3e9feced447b956e496c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 12 Nov 2015 19:42:44 -0500 Subject: We don't need to implement strdup After defining _GNU_SOURCE --- sway/stringop.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sway/stringop.c') diff --git a/sway/stringop.c b/sway/stringop.c index 31a036c3..8d6cac2f 100644 --- a/sway/stringop.c +++ b/sway/stringop.c @@ -362,12 +362,3 @@ char *argsep(char **stringp, const char *delim) { found: return start; } - -char *strdup(const char *str) { - char *dup = malloc(strlen(str) + 1); - if (dup) { - strcpy(dup, str); - } - return dup; -} - -- cgit v1.2.3