-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strcat.c
19 lines (17 loc) · 1.01 KB
/
ft_strcat.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mesafi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/01 16:02:20 by mesafi #+# #+# */
/* Updated: 2020/01/20 13:30:31 by mesafi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcat(char *dest, const char *src)
{
ft_memcpy(dest + ft_strlen(dest), src, ft_strlen(src) + 1);
return (dest);
}