-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_nb.c
22 lines (21 loc) · 1.03 KB
/
ft_printf_nb.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_nb.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: agoksu <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/27 17:34:34 by agoksu #+# #+# */
/* Updated: 2022/11/27 17:34:36 by agoksu ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_printf_nb(unsigned int nb, int *i)
{
if (nb >= 10)
{
ft_printf_nb(nb / 10, i);
nb %= 10;
}
ft_printf_char(nb + '0', i);
}