Comment Putnbr

This commit is contained in:
lclerel- lclerel-
2026-03-09 13:09:47 +01:00
parent 9eb566f33b
commit 22090c3fb4
5 changed files with 17 additions and 16 deletions

View File

@@ -6,16 +6,15 @@
/* By: lclerel- <lclerel-@learner.42.tech> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/09 10:08:57 by lclerel- #+# #+# */
/* Updated: 2026/03/09 12:11:21 by lclerel- ### ########.fr */
/* Updated: 2026/03/09 13:07:20 by lclerel- ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putnbr(int nb)
/*void ft_putnbr(int nb)
{
char value;
if (nb == -2147483648)
{
write(1, "-2147483648", 11);
@@ -30,8 +29,10 @@ void ft_putnbr(int nb)
{
ft_putnbr(nb / 10);
}
value = nb % 10 + '0';
}
write(1, &value, 1);
}*/
int ft_iterative_factorial(int nb)
{