-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathft_strcpy.c
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: rlambert <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/03 18:41:11 by rlambert #+# #+# */
/* Updated: 2014/11/04 12:44:57 by rlambert ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strcpy(char *dst, const char *src)
{
char *s2;
s2 = dst;
while (*src != '\0')
*dst++ = *src++;
*dst = '\0';
return (s2);
}