summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_putnbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_putnbr.c')
-rw-r--r--libft/src/ft_putnbr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libft/src/ft_putnbr.c b/libft/src/ft_putnbr.c
index 3aacca3..cd6bf9b 100644
--- a/libft/src/ft_putnbr.c
+++ b/libft/src/ft_putnbr.c
@@ -14,8 +14,7 @@
#include <unistd.h>
#include <inttypes.h>
-void
- ft_putnbr(long nb)
+void ft_putnbr(long nb)
{
long i;
@@ -31,5 +30,7 @@ void
ft_putchar((i % 10) + '0');
}
else
+ {
ft_putchar(i + '0');
+ }
}