26 lines
1.1 KiB
C
26 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strcat.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: jhalford <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2016/08/07 10:56:53 by jhalford #+# #+# */
|
|
/* Updated: 2016/12/09 19:11:20 by jhalford ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
char *ft_strcat(char *s1, const char *s2)
|
|
{
|
|
char *start;
|
|
|
|
start = s1;
|
|
s1 += ft_strlen(s1);
|
|
if (s2)
|
|
while (*s2)
|
|
*s1++ = *s2++;
|
|
*s1 = 0;
|
|
return (start);
|
|
}
|