Working on ft_strlcpy()

This commit is contained in:
lalgarra 2025-10-05 14:57:01 +02:00
parent 95e346c2ee
commit 8065f4722e
3 changed files with 77 additions and 4 deletions

View file

@ -6,7 +6,7 @@
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/05 13:21:43 by lalgarra #+# #+# */
/* Updated: 2025/10/05 14:02:12 by lalgarra ### ########.fr */
/* Updated: 2025/10/05 14:53:12 by lalgarra ### ########.fr */
/* */
/* ************************************************************************** */
@ -46,7 +46,8 @@ static void do_test1(char *prefix)
fd = STDOUT_FILENO;
ft_bzero(buf, 128);
ft_memcpy(buf, "Lorem ipsum dolor sit amet consectetur adipiscing elit.", 20);
ft_memcpy(buf,
"Lorem ipsum dolor sit amet consectetur adipiscing elit.", 20);
ft_putstr_fd(prefix, fd);
ft_putchar_fd('\n', fd);
ft_putstr_fd(buf, fd);