1
Files
Tom CHIVERT 1c9092caaf Norminette
2019-09-04 05:17:54 +02:00

31 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tchivert <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/04 18:42:51 by tchivert #+# #+# */
/* Updated: 2019/09/04 05:13:31 by tchivert ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcat(char *s1, const char *s2)
{
int i;
int j;
i = 0;
j = ft_strlen(s1);
while (s2[i])
{
s1[j] = s2[i];
i++;
j++;
}
s1[j] = '\0';
return (s1);
}