21 lines
1,000 B
C
21 lines
1,000 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_putstr_fd.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2016/12/04 15:14:02 by gtertysh #+# #+# */
|
||
|
/* Updated: 2016/12/04 15:26:07 by gtertysh ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
void ft_putstr_fd(char const *s, int fd)
|
||
|
{
|
||
|
if (s)
|
||
|
while (*s)
|
||
|
write(fd, s++, 1);
|
||
|
}
|