aboutsummaryrefslogtreecommitdiff
path: root/test_mini/libft/src/str/ft_strlcat.c
diff options
context:
space:
mode:
Diffstat (limited to 'test_mini/libft/src/str/ft_strlcat.c')
-rw-r--r--test_mini/libft/src/str/ft_strlcat.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/test_mini/libft/src/str/ft_strlcat.c b/test_mini/libft/src/str/ft_strlcat.c
deleted file mode 100644
index ce7fa0b..0000000
--- a/test_mini/libft/src/str/ft_strlcat.c
+++ /dev/null
@@ -1,32 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* ft_strlcat.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/07 10:31:37 by cacharle #+# #+# */
-/* Updated: 2019/11/20 03:31:08 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "libft.h"
-
-size_t ft_strlcat(char *dst, const char *src, size_t size)
-{
- size_t i;
- size_t j;
- size_t dst_len;
- size_t src_len;
-
- dst_len = ft_strlen(dst);
- src_len = ft_strlen(src);
- if (size <= dst_len)
- return (src_len + size);
- i = 0;
- j = dst_len;
- while (src[i] && j < size - 1)
- dst[j++] = src[i++];
- dst[j] = '\0';
- return (dst_len + src_len);
-}