1234567891011121314151617181920212223242526 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_strcat.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: mazimi <mazimi@student.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2014/11/21 11:40:49 by mazimi #+# #+# */
- /* Updated: 2014/12/26 18:11:07 by mazimi ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- char *ft_strcat(char *dest, const char *src)
- {
- int i;
- int j;
- j = 0;
- i = ft_strlen(dest);
- while (src[j])
- dest[i++] = src[j++];
- dest[i] = '\0';
- return ((char *)dest);
- }
|