-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strdup.c
18 lines (16 loc) · 989 Bytes
/
ft_strdup.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strdup.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tyeung <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/30 19:26:33 by tyeung #+# #+# */
/* Updated: 2019/09/30 19:26:35 by tyeung ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strdup(const char *s1)
{
return (ft_strndup(s1, ft_strlen(s1)));
}