summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_putnbr_fd.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:29:59 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:29:59 +0200
commitf92d78184cb8ff31648a623914f714baa27ee2e7 (patch)
treeaa7aab141efe14fb9d15900d67f9e202c8c89b40 /libft/src/ft_putnbr_fd.c
parentin progress (diff)
download42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.gz
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.bz2
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.xz
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.zst
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.zip
Normized
Diffstat (limited to 'libft/src/ft_putnbr_fd.c')
-rw-r--r--libft/src/ft_putnbr_fd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libft/src/ft_putnbr_fd.c b/libft/src/ft_putnbr_fd.c
index 437a6e6..0fad8e8 100644
--- a/libft/src/ft_putnbr_fd.c
+++ b/libft/src/ft_putnbr_fd.c
@@ -12,8 +12,7 @@
#include <libft.h>
-void
- ft_putnbr_fd(int n, int fd)
+void ft_putnbr_fd(int n, int fd)
{
unsigned int i;
@@ -29,5 +28,7 @@ void
ft_putchar_fd((i % 10) + 48, fd);
}
else
+ {
ft_putchar_fd(i + 48, fd);
+ }
}