28 lines
1.0 KiB
C
28 lines
1.0 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_strcpy.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gbrochar <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2015/11/25 15:10:54 by gbrochar #+# #+# */
|
||
|
/* Updated: 2015/11/25 15:56:39 by gbrochar ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
char *ft_strcpy(char *dst, const char *src)
|
||
|
{
|
||
|
int i;
|
||
|
|
||
|
i = 0;
|
||
|
while (src[i] != '\0')
|
||
|
{
|
||
|
dst[i] = src[i];
|
||
|
i++;
|
||
|
}
|
||
|
dst[i] = '\0';
|
||
|
return (dst);
|
||
|
}
|