-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strcpy.c
26 lines (24 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
24
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aelphias <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/25 21:26:19 by aelphias #+# #+# */
/* Updated: 2019/10/07 23:24:34 by aelphias ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strcpy(char *dst, const char *src)
{
char *rslt;
rslt = dst;
while (*src != '\0')
{
*dst = *((char *)src);
dst++;
src++;
}
*dst = '\0';
return (rslt);
}