-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strcpy.c
28 lines (25 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
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: igarbuz <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/12 17:23:52 by igarbuz #+# #+# */
/* Updated: 2018/11/12 17:34:45 by igarbuz ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcpy(char *dst, const char *src)
{
char *tmp;
tmp = dst;
while (*src)
{
*tmp = *src;
tmp++;
src++;
}
*tmp = '\0';
return (dst);
}