-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putunbr.c
24 lines (22 loc) · 1.05 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: ymomen <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/14 00:30:21 by ymomen #+# #+# */
/* Updated: 2023/11/14 00:31:38 by ymomen ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putunbr(unsigned int n, int *count)
{
if (n > 9)
{
ft_putnbr(n / 10, count);
ft_putnbr(n % 10, count);
}
else
ft_putchar(n + '0', count);
}