/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_strcat.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: gtertysh +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/01 17:06:09 by gtertysh #+# #+# */ /* Updated: 2016/11/01 20:44:47 by gtertysh ### ########.fr */ /* */ /* ************************************************************************** */ char *ft_strcat(char *dest, char *src) { char *begin; begin = dest; while (*dest) { dest++; } while (*src) { *dest = *src; dest++; src++; } *dest = '\0'; return (begin); }