-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_putendl_fd.c
28 lines (24 loc) · 1.13 KB
/
ft_putendl_fd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mcombeau <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/28 06:13:20 by mcombeau #+# #+# */
/* Updated: 2021/12/02 15:41:38 by mcombeau ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/*
DESCRIPTION :
The function ft_putendl_fd writes the given string to the given
file descriptor followed by a new line.
RETURN VALUE :
None.
*/
void ft_putendl_fd(char *s, int fd)
{
ft_putstr_fd(s, fd);
ft_putchar_fd('\n', fd);
}