From 8b6e91bdb56bc01a588718472546f2a88e750b48 Mon Sep 17 00:00:00 2001 From: Charles Date: Fri, 19 Jul 2019 07:04:04 +0200 Subject: c10 done?, c11 moulinetted (ex04, ex06 need correction) --- c10/ex01/io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'c10/ex01') diff --git a/c10/ex01/io.c b/c10/ex01/io.c index b753902..1fb3cdc 100644 --- a/c10/ex01/io.c +++ b/c10/ex01/io.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/15 19:05:32 by cacharle #+# #+# */ -/* Updated: 2019/07/17 11:19:51 by cacharle ### ########.fr */ +/* Updated: 2019/07/19 06:43:50 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -21,7 +21,7 @@ int read_in_buf(int fildes, char buf[BUF_SIZE]) int write_buf(char buf[BUF_SIZE], int size) { - return (write(1, buf, size)); + return (write(STDOUT_FILENO, buf, size)); } int read_write_fildes(int fildes) -- cgit