-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putendl_fd.c
More file actions
23 lines (21 loc) · 1.01 KB
/
ft_putendl_fd.c
File metadata and controls
23 lines (21 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gsaiago <gsaiago@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/07 16:22:36 by gsaiago #+# #+# */
/* Updated: 2022/06/15 17:26:10 by gsaiago ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putendl_fd(char *s, int fd)
{
if (!s)
return ;
s--;
while (*(++s))
write (fd, s, 1);
write (fd, "\n", 1);
}