-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strcpy.c
27 lines (24 loc) · 1.09 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
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hshawand <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/04 12:09:59 by hshawand #+# #+# */
/* Updated: 2019/04/04 12:21:04 by hshawand ### ########.fr */
/* */
/* ************************************************************************** */
#include <string.h>
char *ft_strcpy(char *destination, const char *source)
{
unsigned int i;
i = 0;
while (source[i] != '\0')
{
destination[i] = source[i];
i++;
}
destination[i] = '\0';
return (destination);
}