Update ft_strlcat.c

This commit is contained in:
Raphaël 2023-12-02 07:10:19 +01:00 committed by GitHub
parent e2b91aad7f
commit 5cedd8ac7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -17,12 +17,8 @@ static size_t ft_strnlen(char *dest, size_t size)
size_t i; size_t i;
i = 0; i = 0;
while (i < size) while (i < size && dest[i] != '\0')
{
if (dest[i] == '\0')
break ;
i++; i++;
}
return (i); return (i);
} }