-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putendl_fd.c
32 lines (28 loc) · 1.15 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
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yuske <yuske@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/27 07:35:53 by yfurutat #+# #+# */
/* Updated: 2022/11/17 01:40:51 by yuske ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
// void ft_putendl_fd(char *s, int fd)
// {
// size_t len;
// if (!s)
// return ;
// len = ft_strlen(s);
// write(fd, s, len);
// write(fd, "\n", 1);
// }
void ft_putendl_fd(char *s, int fd)
{
if (!s)
return ;
ft_putstr_fd(s, fd);
write(fd, "\n", 1);
}