Skip to content

Commit

Permalink
write unsigned numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
Walid Araissi committed Nov 10, 2022
1 parent 100aa98 commit a5f3712
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ft_putnbr_unsigned.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
/* By: waraissi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/09 18:42:25 by waraissi #+# #+# */
/* Updated: 2022/11/09 21:33:00 by waraissi ### ########.fr */
/* Updated: 2022/11/10 18:14:55 by waraissi ### ########.fr */
/* */
/* ************************************************************************** */

#include "ft_printf.h"

void ft_putnbr_unsigned(unsigned int nbr, int *res)
void ft_putnbr_unsigned(unsigned int nbr, int *res)
{
if (nbr < 10)
ft_putchar(nbr + 48, res);
Expand All @@ -21,4 +21,4 @@ void ft_putnbr_unsigned(unsigned int nbr, int *res)
ft_putnbr(nbr / 10, res);
ft_putnbr(nbr % 10, res);
}
}
}

0 comments on commit a5f3712

Please sign in to comment.