Corewar-Final/libft/libft/ft_putstr_fd.c
Jeremy FLEURY 748d10f4f3 push
2019-07-17 11:22:24 +02:00

30 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jfleury <jfleury@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/13 10:04:05 by jfleury #+# #+# */
/* Updated: 2018/11/13 20:26:36 by jfleury ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include <string.h>
void ft_putstr_fd(char const *s, int fd)
{
size_t i;
i = 0;
if (s != NULL)
{
while (s[i] != '\0')
{
ft_putchar_fd(s[i], fd);
i++;
}
}
}