-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strcpy.c
21 lines (19 loc) · 1011 Bytes
/
ft_strcpy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ylagtab <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/03/31 23:50:47 by ylagtab #+# #+# */
/* Updated: 2020/03/06 22:33:17 by ylagtab ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strcpy(char *dst, const char *src)
{
char *ret;
ret = dst;
while ((*dst++ = *src++))
;
return (ret);
}