-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putunsigned.c
24 lines (22 loc) · 1.06 KB
/
ft_putunsigned.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_putunsigned.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: abertran <abertran@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/18 19:24:54 by abertran #+# #+# */
/* Updated: 2022/11/18 19:30:12 by abertran ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putunsigned(unsigned int nb, int *len)
{
if (nb >= 10)
{
ft_putunsigned(nb / 10, len);
ft_putunsigned(nb % 10, len);
}
else
ft_putcharlen(nb + 48, len);
}