Remplace all write with ft_putchar and ft_puts
This commit is contained in:
22
libftprintf/ft_putchar.c
Normal file
22
libftprintf/ft_putchar.c
Normal file
@@ -0,0 +1,22 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_putchar.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/04/16 00:05:56 by gbaconni #+# #+# */
|
||||
/* Updated: 2022/04/16 00:27:53 by gbaconni ### lausanne.ch */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libftprintf.h"
|
||||
|
||||
int ft_putchar(int c)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = 0;
|
||||
ret = write(1, &c, 1);
|
||||
return (ret);
|
||||
}
|
||||
Reference in New Issue
Block a user