30 lines
1.1 KiB
C
30 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strcat.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2016/11/01 17:06:09 by gtertysh #+# #+# */
|
|
/* Updated: 2016/11/01 20:44:47 by gtertysh ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
char *ft_strcat(char *dest, char *src)
|
|
{
|
|
char *begin;
|
|
|
|
begin = dest;
|
|
while (*dest)
|
|
{
|
|
dest++;
|
|
}
|
|
while (*src)
|
|
{
|
|
*dest = *src;
|
|
dest++;
|
|
src++;
|
|
}
|
|
*dest = '\0';
|
|
return (begin);
|
|
}
|