-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strcat.c
More file actions
22 lines (19 loc) · 1.01 KB
/
Copy pathft_strcat.c
File metadata and controls
22 lines (19 loc) · 1.01 KB
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: mnishimo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/21 18:37:08 by mnishimo #+# #+# */
/* Updated: 2019/01/15 17:43:57 by mnishimo ### ########.fr */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
char *ft_strcat(char *s1, const char *s2)
{
int i;
i = ft_strlen(s1);
ft_strcpy(s1 + i, s2);
return (s1);
}