-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strcat.c
19 lines (17 loc) · 1 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: asarandi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/09/21 10:03:55 by asarandi #+# #+# */
/* Updated: 2017/09/21 10:26:15 by asarandi ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcat(char *restrict s1, const char *restrict s2)
{
ft_strcpy(&s1[ft_strlen(s1)], s2);
return (s1);
}