aboutsummaryrefslogtreecommitdiff
path: root/c10/ex01
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-07-19 07:04:04 +0200
committerCharles <sircharlesaze@gmail.com>2019-07-19 07:04:04 +0200
commit8b6e91bdb56bc01a588718472546f2a88e750b48 (patch)
tree654ba9e8216c688bb3d6a2e5d67526ae8ec4b874 /c10/ex01
parent880102ae9358db130ef67cc9a7177a1e1de76875 (diff)
downloadpiscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.gz
piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.tar.bz2
piscine-8b6e91bdb56bc01a588718472546f2a88e750b48.zip
c10 done?, c11 moulinetted (ex04, ex06 need correction)
Diffstat (limited to 'c10/ex01')
-rw-r--r--c10/ex01/io.c4
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)