This commit is contained in:
Camille Chauvet
2023-05-17 16:45:25 +00:00
commit 29ed24d567
619 changed files with 16119 additions and 0 deletions

BIN
C/c03/ex05/a.out Executable file

Binary file not shown.

25
C/c03/ex05/ft_strlcat.c Normal file
View File

@ -0,0 +1,25 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strlcat.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/21 13:02:29 by cchauvet #+# #+# */
/* Updated: 2022/07/21 13:38:29 by cchauvet ### ########.fr */
/* */
/* ************************************************************************** */
unsigned int ft_strlcat(char *dest, char *src, unsigned int size)
{
int i;
i = 0;
while (dest[i] != 0 && src[i] != 0 && i < size)
{
dest[i] = src[i];
i++;
}
dest[i] = '\0';
return (i);
}