-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strcpy.c
executable file
·23 lines (20 loc) · 1.04 KB
/
ft_strcpy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jraymond <jraymond@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/11 22:12:05 by jraymond #+# #+# */
/* Updated: 2018/06/18 10:30:28 by jraymond ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcpy(char *dest, const char *src)
{
size_t size;
size = ft_strlen(src);
ft_memcpy(dest, src, size);
dest[size] = '\0';
return (dest);
}