-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putstr_fd.c
20 lines (19 loc) · 1002 Bytes
/
ft_putstr_fd.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: fraqioui <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/07 08:58:27 by fraqioui #+# #+# */
/* Updated: 2022/10/18 17:15:19 by fraqioui ### ########.fr */
/* */
/* ************************************************************************** */
#include"libft.h"
void ft_putstr_fd(char *s, int fd)
{
if (!s)
return ;
while (*s)
write(fd, s++, 1);
}