Automatic add

This commit is contained in:
Timo Schmidt 2023-03-28 17:23:40 +02:00
parent be02e1198a
commit 848087603e
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */ /* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/17 18:25:06 by tischmid #+# #+# */ /* Created: 2023/03/17 18:25:06 by tischmid #+# #+# */
/* Updated: 2023/03/24 01:58:29 by tischmid ### ########.fr */ /* Updated: 2023/03/28 16:08:30 by tischmid ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */

View File

@ -6,7 +6,7 @@
/* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */ /* By: tischmid <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/24 03:19:16 by tischmid #+# #+# */ /* Created: 2023/03/24 03:19:16 by tischmid #+# #+# */
/* Updated: 2023/03/28 02:51:57 by tischmid ### ########.fr */ /* Updated: 2023/03/28 17:23:27 by tischmid ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -14,7 +14,7 @@
unsigned int ft_strlcat(char *dest, char *src, unsigned int size) unsigned int ft_strlcat(char *dest, char *src, unsigned int size)
{ {
unsigned int src_len; unsigned int dest_src_size;
unsigned int i; unsigned int i;
char *o_src; char *o_src;
@ -22,14 +22,14 @@ unsigned int ft_strlcat(char *dest, char *src, unsigned int size)
i = 0; i = 0;
while (*dest++) while (*dest++)
++i; ++i;
dest_src_size = i;
--dest; --dest;
while (++i < size && *src) while (++i < size && *src)
*dest++ = *src++; *dest++ = *src++;
*dest = 0; *dest = 0;
src_len = 0;
while (*o_src++) while (*o_src++)
++src_len; ++dest_src_size;
return (src_len); return (dest_src_size);
} }
/* //// /* ////