-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putnbru.c
25 lines (23 loc) · 1.04 KB
/
ft_putnbru.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
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putnbru.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: qdegraev <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/02/11 21:31:45 by qdegraev #+# #+# */
/* Updated: 2016/02/11 21:32:39 by qdegraev ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putnbru(unsigned int nb)
{
if (nb < 10)
{
ft_putchar(nb + 48);
return ;
}
ft_putnbru(nb / 10);
ft_putchar((nb % 10) + 48);
return ;
}