This commit is contained in:
HexPloR
2024-06-24 00:02:52 +02:00
commit 4dfc0cd7ec
602 changed files with 5341 additions and 0 deletions
+33
View File
@@ -0,0 +1,33 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hexplor <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/23 14:24:20 by hexplor #+# #+# */
/* Updated: 2023/12/26 15:25:19 by hexplor ### ########.fr */
/* */
/* ************************************************************************** */
#include "../header/ft_printf.h"
int pf_putstr_fd(char *s, int fd)
{
unsigned int i;
int count;
if (!s)
{
pf_putstr_fd("(null)", fd);
return (6);
}
i = 0;
count = 0;
while (*(s + i))
{
count += pf_putchar_fd(*(s + i), fd);
i++;
}
return (count);
}