-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putendl_fd.c
20 lines (18 loc) · 1014 Bytes
/
ft_putendl_fd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kyungsle <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/12 02:09:08 by kyungsle #+# #+# */
/* Updated: 2021/12/05 14:24:21 by kyungsle ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putendl_fd(char *s, int fd)
{
while (*s)
ft_putchar_fd(*(s++), fd);
write(fd, "\n", 1);
}