/
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: clagreou <clagreou@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/11/28 22:03:50 by clagreou #+# #+# */
/* Updated: 2016/01/01 18:15:44 by clagreou ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putstr_fd(char const *s, int fd)
{
char *ptr;
if (!s)
return;
ptr = (char *)s;
while (*ptr)
ft_putchar_fd(*ptr++, fd);
}