Skip to content

Commit

Permalink
fix: replace the include
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAgen committed Oct 23, 2024
1 parent 898d138 commit 8f75e2b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/handler/put_nbr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
int printf_put_nbr(int nb)
{
if (nb < 0) {
my_putchar('-');
write(1, '-', 1);
nb *= -1;
}
if (nb < 10) {
my_putchar(nb + '0');
write(1, nb + '0', 1);
} else {
my_put_nbr(nb / 10);
my_putchar(nb % 10 +'0');
printf_put_nbr(nb / 10);
write(1, nb % 10 +'0', 1);
}
return 0;
}

0 comments on commit 8f75e2b

Please sign in to comment.