Comment Putnbr
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user