From 87369c766fd7921820ead2ab621e23d07fc02b50 Mon Sep 17 00:00:00 2001 From: nullgemm Date: Thu, 1 Jun 2017 18:46:50 +0200 Subject: [PATCH] removed strdup implementation --- src/utils.c | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/utils.c b/src/utils.c index e62f659..eb7f873 100644 --- a/src/utils.c +++ b/src/utils.c @@ -51,19 +51,6 @@ char* trim(char* s) return s; } -char* strdup(const char* src) -{ - size_t len = strlen(src) + 1; - char* s = malloc(len); - - if(!s) - { - return NULL; - } - - return (char*)memcpy(s, src, len); -} - void error_init(WINDOW* win, int width, const char* s) { static WINDOW* win_stack = NULL;