-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strcpy.c
27 lines (24 loc) · 1.12 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ashongwe <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/05/23 13:33:50 by ashongwe #+# #+# */
/* Updated: 2019/06/14 07:37:47 by ashongwe ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcpy(char *destination, const char *source)
{
size_t control;
control = 0;
while (source[control])
{
destination[control] = source[control];
control++;
}
destination[control] = '\0';
return (destination);
}