diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-02-03 19:10:42 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-02-03 19:22:41 +0100 |
| commit | 50673fcdac35a0854fd9799aa8a987fb20e84520 (patch) | |
| tree | 9fb7e9d4e4260cf8ba0536a4f64a7ae4477d5fcc /src/io/ft_putchar.c | |
| parent | 39951f08a2938683d800c677c3a244e9ff8dbe19 (diff) | |
| download | libft-50673fcdac35a0854fd9799aa8a987fb20e84520.tar.gz libft-50673fcdac35a0854fd9799aa8a987fb20e84520.tar.bz2 libft-50673fcdac35a0854fd9799aa8a987fb20e84520.zip | |
Fixing -Wunused-resultminishell
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)) + { + ; + } } |
