ft_printf/ft_putstr.c
Etienne Rey-bethbeder c70b29dfd1 printf
2022-11-10 15:25:19 +01:00

30 lines
1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: erey-bet <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/05 00:32:38 by erey-bet #+# #+# */
/* Updated: 2022/10/15 23:15:57 by erey-bet ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putstr(char *s)
{
int count;
count = 0;
if (s == NULL)
return (-1);
while (*s)
{
ft_putchar(*s);
s++;
count++;
}
return (count);
}