-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_putunbr.c
24 lines (22 loc) · 1.06 KB
/
ft_putunbr.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_putunbr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rel-fila <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/08 16:58:31 by rel-fila #+# #+# */
/* Updated: 2022/11/08 16:58:42 by rel-fila ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putunbr(unsigned int n, int *count)
{
if (n >= 10)
{
ft_putunbr((n / 10), count);
ft_putunbr((n % 10), count);
}
else
ft_putchar((n + 48), count);
}