-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_strcat.c
executable file
·22 lines (19 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
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jpinyot <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/09 23:57:21 by jpinyot #+# #+# */
/* Updated: 2017/11/11 16:55:23 by jpinyot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strcat(char *dest, const char *str)
{
size_t n;
n = ft_strlen(dest);
ft_strcpy(&dest[n], str);
return (dest);
}