-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strcpy.c
24 lines (21 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sadamant <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/08/04 17:24:33 by sadamant #+# #+# */
/* Updated: 2017/09/08 18:45:00 by sadamant ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcpy(char *dest, const char *src)
{
char *destcpy;
destcpy = dest;
while (*src)
*dest++ = *src++;
*dest = '\0';
return (destcpy);
}