base struct
This commit is contained in:
22
lib/libft/srcs/print/ft_putendl_fd.c
Normal file
22
lib/libft/srcs/print/ft_putendl_fd.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_putendl_fd.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: nalebrun <nalebrun@student.s19.be> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/10/15 18:01:01 by nalebrun #+# #+# */
|
||||
/* Updated: 2024/11/25 16:15:50 by nalebrun ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../libft.h"
|
||||
|
||||
void ft_putendl_fd(char *s, int fd)
|
||||
{
|
||||
int d;
|
||||
|
||||
d = 10;
|
||||
write(fd, s, ft_strlen(s));
|
||||
write(fd, &d, 1);
|
||||
}
|
||||
Reference in New Issue
Block a user