From 49ad59b0e773e92e93fb69ede889c781ca53e680 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 15 Jan 2020 07:56:02 +0100 Subject: Move *.o -> src/, *.h -> include/ and *.o -> build --- ft_strdup.c | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 ft_strdup.c (limited to 'ft_strdup.c') diff --git a/ft_strdup.c b/ft_strdup.c deleted file mode 100644 index 65a6ac6..0000000 --- a/ft_strdup.c +++ /dev/null @@ -1,22 +0,0 @@ -/* ************************************************************************** */ -/* */ -/* ::: :::::::: */ -/* ft_strdup.c :+: :+: :+: */ -/* +:+ +:+ +:+ */ -/* By: cacharle +#+ +:+ +#+ */ -/* +#+#+#+#+#+ +#+ */ -/* Created: 2019/10/07 10:18:07 by cacharle #+# #+# */ -/* Updated: 2019/11/20 03:13:47 by cacharle ### ########.fr */ -/* */ -/* ************************************************************************** */ - -#include "libft.h" - -char *ft_strdup(const char *s) -{ - char *clone; - - if ((clone = ft_strnew(ft_strlen(s))) == NULL) - return (NULL); - return (ft_strcpy(clone, s)); -} -- cgit