Files
ft_printf/libftprintf/ft_puts.c

24 lines
1.0 KiB
C
Raw Normal View History

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_puts.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/16 00:07:17 by gbaconni #+# #+# */
/* Updated: 2022/04/16 00:35:49 by gbaconni ### lausanne.ch */
/* */
/* ************************************************************************** */
#include "libftprintf.h"
int ft_puts(const char *s)
{
int ret;
ret = 0;
while (*s != '\0')
ret += ft_putchar(*s++);
return (ret);
}