26 lines
1018 B
C
26 lines
1018 B
C
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* ft_putstr_fd.c :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: adjoly <adjoly@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2023/10/31 11:45:55 by adjoly #+# #+# */
|
||
|
/* Updated: 2023/11/01 17:14:02 by adjoly ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "libft.h"
|
||
|
|
||
|
void ft_putstr_fd(char *s, int fd)
|
||
|
{
|
||
|
int i;
|
||
|
|
||
|
i = 0;
|
||
|
while (s[i])
|
||
|
{
|
||
|
write(fd, &s[i], 1);
|
||
|
i++;
|
||
|
}
|
||
|
}
|