-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr_fd.c
executable file
·24 lines (21 loc) · 1.03 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
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <tseguier@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/11/25 17:06:21 by tseguier #+# #+# */
/* Updated: 2014/07/02 15:33:59 by tseguier ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
#include "libft.h"
void ft_putstr_fd(char const *s, int fd)
{
size_t i;
if (!s || fd < 0)
return ;
i = ft_strlen(s);
write(fd, s, i);
}