diff options
Diffstat (limited to 'src/io/ft_putchar.c')
| -rw-r--r-- | src/io/ft_putchar.c | 7 |
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)) + { + ; + } } |
