-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathft_putendl_fd.c
21 lines (19 loc) · 1.01 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: vbrazhni <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/07/04 12:44:35 by vbrazhni #+# #+# */
/* Updated: 2018/07/04 12:44:37 by vbrazhni ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <unistd.h>
void ft_putendl_fd(char const *s, int fd)
{
if (s)
write(fd, s, ft_strlen(s));
write(fd, "\n", 1);
}