-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putendl_fd.c
executable file
·23 lines (21 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putendl_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akharrou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/19 07:28:38 by akharrou #+# #+# */
/* Updated: 2019/03/04 13:17:20 by akharrou ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "../Includes/string_42.h"
void ft_putendl_fd(char const *s, int fd)
{
if (s)
{
write(fd, s, ft_strlen(s));
write(fd, "\n", 1);
}
}