summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_putchar_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_putchar_fd.c')
-rw-r--r--libft/src/ft_putchar_fd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libft/src/ft_putchar_fd.c b/libft/src/ft_putchar_fd.c
index f57a4f9..a8fed8f 100644
--- a/libft/src/ft_putchar_fd.c
+++ b/libft/src/ft_putchar_fd.c
@@ -13,8 +13,8 @@
#include <unistd.h>
-void
+int
ft_putchar_fd(char c, int fd)
{
- write(fd, &c, 1);
+ return (write(fd, &c, 1));
}