diff options
Diffstat (limited to 'lib/libft/ft_putendl_fd.c')
| -rw-r--r-- | lib/libft/ft_putendl_fd.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/libft/ft_putendl_fd.c b/lib/libft/ft_putendl_fd.c new file mode 100644 index 0000000..f8de15e --- /dev/null +++ b/lib/libft/ft_putendl_fd.c @@ -0,0 +1,19 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_putendl_fd.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2024/03/06 20:47:17 by dkaiser #+# #+# */ +/* Updated: 2024/03/10 14:07:58 by dkaiser ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft.h" + +void ft_putendl_fd(char *s, int fd) +{ + write(fd, s, ft_strlen(s)); + write(fd, "\n", 1); +} |
