#include <stdio.h>

char	*ft_strcat(char *dest, char *src)
{
	int	i;
	int	j;

	i = 0;
	j = 0;
	while (dest[i] != '\0')
	{
		i++;
	}
	while (src[j] != '\0')
	{
		dest[i + j] = src[j];
		j++;
	}
	dest[i + j] = '\0';
	return (dest);
}

int	main(void)
{
	char	dest[255] = "Hello ";
	char	src[] = "World!\n";

	ft_strcat(dest, src);
	printf("%s", dest);
	return (0);
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: