Working on ft_strlcpy()
This commit is contained in:
parent
95e346c2ee
commit
8065f4722e
3 changed files with 77 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue