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
23
void
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
}
ft_putendl_fd
void ft_putendl_fd(char *s, int fd)
Writes a string followed by a newline to a file descriptor.
Definition
ft_putendl_fd.c:23
ft_putstr_fd
void ft_putstr_fd(char *s, int fd)
Writes a string to a file descriptor.
Definition
ft_putstr_fd.c:23
src
ft_putendl_fd.c
Generated by
1.9.8