/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strcat.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: chuhlig +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2025/01/09 13:06:44 by chuhlig #+# #+# */ /* Updated: 2025/01/09 13:07:15 by chuhlig ### ########.fr */ /* */ /* ************************************************************************** */ char *ft_strcat(char *dest, char *src) { int i; int j; j = 0; i = 0; while (dest[i]) i++; while (src[j]) { dest[i + j] = src[j]; j++; } dest[i + j] = '\0'; return (dest); }