Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_putendl_fd.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_putendl_fd.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: raphalme <raphalme@student.42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2025/12/29 19:11:00 by raphalme #+# #+# */
9/* Updated: 2026/04/14 10:45:22 by raphalme ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "../includes/libft.h"
14
23void ft_putendl_fd(char *s, int fd)
24{
25 if (!s)
26 return ;
27 ft_putstr_fd(s, fd);
28 write(fd, "\n", 1);
29}
void ft_putendl_fd(char *s, int fd)
Writes a string followed by a newline to a file descriptor.
void ft_putstr_fd(char *s, int fd)
Writes a string to a file descriptor.