-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_putstr_fd.c
21 lines (19 loc) · 1 KB
/
ft_putstr_fd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oadhesiv <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/23 15:13:12 by oadhesiv #+# #+# */
/* Updated: 2019/04/25 12:37:41 by oadhesiv ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "libft.h"
void ft_putstr_fd(char const *s, int fd)
{
if (!s)
return ;
write(fd, s, ft_strlen(s));
}