-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_stpcpy.c
19 lines (18 loc) · 1002 Bytes
/
ft_stpcpy.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_stpcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ewilliam <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/29 17:33:20 by ewilliam #+# #+# */
/* Updated: 2016/12/09 16:57:11 by ewilliam ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_stpcpy(char *dst, const char *src)
{
while (*src)
*dst++ = *src++;
*dst = '\0';
return (dst);
}