-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathft_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: vbrazas <vbrazas@student.unit.ua> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/11/06 22:02:23 by vbrazas #+# #+# */
/* Updated: 2018/02/05 14:12:46 by vbrazas ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
ssize_t ft_putstr_fd(char const *s, int fd)
{
if (s)
return (write(fd, s, ft_strlen(s)));
else
return (0);
}