-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strcpy.c
executable file
·22 lines (20 loc) · 1.01 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aimelda <aimelda@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/08 22:19:44 by aimelda #+# #+# */
/* Updated: 2019/09/09 16:28:41 by aimelda ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strcpy(char *dst, const char *src)
{
char *dest;
dest = dst;
while (*src != '\0')
*dest++ = *src++;
*dest = '\0';
return (dst);
}