diff options
Diffstat (limited to 'c10/ex01/io.c')
| -rw-r--r-- | c10/ex01/io.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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) |
