-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putnbr_unsigned.c
25 lines (23 loc) · 1.05 KB
/
ft_putnbr_unsigned.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_putnbr_unsigned.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ybenchel <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/11/09 17:29:27 by ybenchel #+# #+# */
/* Updated: 2024/12/17 16:57:57 by ybenchel ### ########.fr */
/* */
/* ************************************************************************** */
#include "pipex.h"
int ft_putnbr_unsigned(unsigned int n)
{
if (n > 9)
{
ft_putnbr_unsigned(n / 10);
ft_putchar((n % 10) + '0');
}
else
ft_putchar(n + '0');
return (0);
}