ft_nm/subprojects/libft/ft_strcat.c

27 lines
1 KiB
C
Raw Permalink Normal View History

2019-05-10 18:29:21 +03:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/11/30 14:58:16 by gtertysh #+# #+# */
/* Updated: 2016/11/30 15:02:50 by gtertysh ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcat(char *s1, const char *s2)
{
char *s;
s = s1;
while (*s1)
s1++;
while (*s2)
*s1++ = *s2++;
*s1 = '\0';
return (s);
}