1 file changed, +2, -2
6e05442improves readability of strlcpy
author
mogiya <git@mogiya.dev> on 17-03-2026 14:25 UTC
committer
mogiya <git@mogiya.dev> on 17-03-2026 14:25 UTC
parent1d9cd64
+2, -2
    @@ -6,7 +6,7 @@
 6 6 /*   By: mleitao <mleitao@student.42.fr>            +#+  +:+       +#+        */
 7 7 /*                                                +#+#+#+#+#+   +#+           */
 8 8 /*   Created: 2026/03/09 22:48:32 by mleitao           #+#    #+#             */
 9  -/*   Updated: 2026/03/10 17:43:41 by mleitao          ###   ########.fr       */
   9+/*   Updated: 2026/03/17 14:24:46 by mleitao          ###   ########.fr       */
1010 /*                                                                            */
1111 /* ************************************************************************** */
1212 
    @@ -14,7 +14,7 @@
1414 
1515 size_t	ft_strlcpy(char *dst, const char *src, size_t size)
1616 {
17  -	unsigned int	src_len;
  17+	size_t	src_len;
1818 
1919 	src_len = ft_strlen(src);
2020 	if (size == 0)