22 lines
1011 B
C
22 lines
1011 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_putstr_fd.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: cchauvet <cchauvet@student.42angoulem +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/09/29 22:25:08 by cchauvet #+# #+# */
|
||
|
/* Updated: 2022/09/29 22:40:34 by cchauvet ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
void ft_putstr_fd(char *s, int fd)
|
||
|
{
|
||
|
if (s == NULL)
|
||
|
return ;
|
||
|
while (*s)
|
||
|
write(fd, s++, 1);
|
||
|
}
|