Remplace all write with ft_putchar and ft_puts
This commit is contained in:
23
libftprintf/ft_puts.c
Normal file
23
libftprintf/ft_puts.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user