-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putendl_fd.c
20 lines (18 loc) · 1023 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: mosborne <mosborne@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/10/04 15:43:18 by mosborne #+# #+# */
/* Updated: 2017/10/04 16:41:09 by mosborne ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putendl_fd(char const *s, int fd)
{
while (*s)
ft_putchar_fd(*s++, fd);
ft_putchar_fd('\n', fd);
}