aboutsummaryrefslogtreecommitdiff
path: root/ft_strndup.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_strndup.c')
-rw-r--r--ft_strndup.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/ft_strndup.c b/ft_strndup.c
deleted file mode 100644
index 0683dae..0000000
--- a/ft_strndup.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_strndup.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/25 03:28:52 by cacharle #+# #+# */
-/* Updated: 2019/11/20 04:15:44 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-
-char *ft_strndup(const char *s1, size_t n)
-{
- char *clone;
-
- if ((clone = ft_strnew(n)) == NULL)
- return (NULL);
- return (ft_strncpy(clone, s1, n));
-}