From fc29371a10bf6cfd93c4e9ccfe9193c1311efc98 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 27 Dec 2019 17:24:35 +0100 Subject: updated libft, better Makefile and .gitignore --- libft/src/ft_putchar_fd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libft/src/ft_putchar_fd.c') diff --git a/libft/src/ft_putchar_fd.c b/libft/src/ft_putchar_fd.c index f57a4f9..a8fed8f 100644 --- a/libft/src/ft_putchar_fd.c +++ b/libft/src/ft_putchar_fd.c @@ -13,8 +13,8 @@ #include -void +int ft_putchar_fd(char c, int fd) { - write(fd, &c, 1); + return (write(fd, &c, 1)); } -- cgit v1.2.3