-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_putnbr_uns.c
24 lines (22 loc) · 1.04 KB
/
ft_putnbr_uns.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putnbr_uns.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zbabahmi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/31 07:27:07 by zbabahmi #+# #+# */
/* Updated: 2022/10/31 07:27:08 by zbabahmi ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putnbr_uns(unsigned int n, int *len)
{
if (n < 10)
ft_putchar(n + 48, len);
else
{
ft_putnbr(n / 10, len);
ft_putnbr(n % 10, len);
}
}