-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putnbrunsigned.c
24 lines (22 loc) · 1.07 KB
/
ft_putnbrunsigned.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_putnbrunsigned.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sbourziq <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/24 12:41:36 by sbourziq #+# #+# */
/* Updated: 2024/03/12 21:57:44 by sbourziq ### ########.fr */
/* */
/* ************************************************************************** */
#include "so_long.h"
void ft_putnbrunsigned(unsigned int nb, int *len)
{
if (nb >= 10)
{
ft_putnbrunsigned(nb / 10, len);
ft_putnbrunsigned(nb % 10, len);
}
else
ft_putchar(nb + 48, len);
}