27 lines
1.0 KiB
C
27 lines
1.0 KiB
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_strcat.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gbrochar <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2015/11/25 16:26:53 by gbrochar #+# #+# */
|
||
|
/* Updated: 2015/11/25 19:39:14 by gbrochar ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
char *ft_strcat(char *s1, const char *s2)
|
||
|
{
|
||
|
char *s3;
|
||
|
|
||
|
s3 = s1;
|
||
|
while (*s3)
|
||
|
s3++;
|
||
|
while (*s2)
|
||
|
*s3++ = *s2++;
|
||
|
*s3 = '\0';
|
||
|
return (s1);
|
||
|
}
|