blob: e7289db16f5f8d4ca03e83b8a5b62baff6d9d8ae (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 10:09:41 by cacharle #+# #+# */
/* Updated: 2019/10/07 10:39:51 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strcat(char *dest, const char *src)
{
int i;
int j;
i = 0;
while (dest[i])
i++;
j = 0;
while (src[j])
{
dest[i + j] = src[j];
j++;
}
dest[i + j] = '\0';
return (dest);
}
|