23 lines
1.0 KiB
C
23 lines
1.0 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_strcat.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: tmaze <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2018/04/04 17:56:56 by tmaze #+# #+# */
|
|
/* Updated: 2018/04/04 18:21:46 by tmaze ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
char *ft_strcat(char *restrict dest, const char *src)
|
|
{
|
|
int dest_len;
|
|
|
|
dest_len = ft_strlen(dest);
|
|
ft_strcpy(&dest[dest_len], src);
|
|
return (dest);
|
|
}
|