mirror of
https://github.com/Ladebeze66/libft.git
synced 2025-12-13 04:36:55 +01:00
28 lines
1.0 KiB
C
Executable File
28 lines
1.0 KiB
C
Executable File
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_putstr_fd.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/02/15 12:29:14 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/02/15 19:02:37 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
void ft_putstr_fd(char *s, int fd)
|
|
{
|
|
int i;
|
|
|
|
i = 0;
|
|
if (!s || !fd)
|
|
return ;
|
|
while (s[i])
|
|
{
|
|
write(fd, &s[i], 1);
|
|
i++;
|
|
}
|
|
}
|