-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putendl_fd.c
More file actions
25 lines (22 loc) · 1.1 KB
/
ft_putendl_fd.c
File metadata and controls
25 lines (22 loc) · 1.1 KB
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kmoutaou <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/13 21:48:50 by kmoutaou #+# #+# */
/* Updated: 2021/11/19 16:49:07 by kmoutaou ### ########.fr */
/* */
/* ************************************************************************** */
/*
ft_putendl_fd is a function that outputs the string ’s’ to the given file
descriptor, followed by a newline.
*/
#include "libft.h"
void ft_putendl_fd(char *s, int fd)
{
ft_putstr_fd(s, fd);
write(fd, "\n", 1);
return ;
}