-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putendl_fd.c
23 lines (21 loc) · 1.25 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lgasc <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/02/09 13:55:44 by lgasc #+# #+# */
/* Updated: 2024/02/13 13:46:27 by lgasc ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
///Outputs the `string` to the given `file_descriptor` followed by a newline.
///@param[in] string What to put (A newline will be added.)
///@param[in] file_descriptor Where to put
///@remarks External function: `write`
void ft_putendl_fd(const char *const string, int file_descriptor)
{
ft_putstr_fd(string, file_descriptor);
write(file_descriptor, "\n", 1);
}