aboutsummaryrefslogtreecommitdiff
path: root/src/io/ft_putchar.c
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-02-03 19:10:42 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-02-03 19:22:10 +0100
commit2994c35b1f0a676c6df21854464f139507555fea (patch)
tree2f9464ce2abea5f94c7c95a28f4bf614d3d840a0 /src/io/ft_putchar.c
parent9e88392537ee8863d5479b8395676e1517c9aef0 (diff)
downloadlibft-master.tar.gz
libft-master.tar.bz2
libft-master.zip
Fixing -Wunused-resultHEADmaster
Diffstat (limited to 'src/io/ft_putchar.c')
-rw-r--r--src/io/ft_putchar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/io/ft_putchar.c b/src/io/ft_putchar.c
index 2838f0a..8dd6f65 100644
--- a/src/io/ft_putchar.c
+++ b/src/io/ft_putchar.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 09:53:31 by cacharle #+# #+# */
-/* Updated: 2019/11/20 03:49:14 by cacharle ### ########.fr */
+/* Updated: 2021/02/03 19:21:40 by charles ### ########.fr */
/* */
/* ************************************************************************** */
@@ -14,5 +14,8 @@
void ft_putchar(char c)
{
- write(STDOUT_FILENO, &c, 1);
+ if (write(STDOUT_FILENO, &c, 1))
+ {
+ ;
+ }
}