-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strcpy.c
26 lines (24 loc) · 1.05 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
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ewilliam <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/29 17:33:20 by ewilliam #+# #+# */
/* Updated: 2016/11/30 13:25:14 by ewilliam ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strcpy(char *dst, const char *src)
{
char *destination;
destination = dst;
while (*src)
{
*dst = *src;
dst++;
src++;
}
*dst = '\0';
return (destination);
}