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