-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strcpy.c
More file actions
26 lines (23 loc) · 1.08 KB
/
ft_strcpy.c
File metadata and controls
26 lines (23 loc) · 1.08 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcpy.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jagarcia <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/11 00:56:35 by jagarcia #+# #+# */
/* Updated: 2017/11/11 01:19:19 by jagarcia ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcpy(char *dst, const char *src)
{
char *dstcpy;
char *srccpy;
dstcpy = dst;
srccpy = (char *)src;
while (*srccpy)
*dstcpy++ = *srccpy++;
*dstcpy = '\0';
return (dst);
}