-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putunbr.c
More file actions
24 lines (22 loc) · 1.06 KB
/
ft_putunbr.c
File metadata and controls
24 lines (22 loc) · 1.06 KB
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: ekose <ekose@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/29 12:26:13 by ekose #+# #+# */
/* Updated: 2023/11/02 13:09:56 by ekose ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putunbr(unsigned int n, unsigned int *len)
{
if (n > 9)
{
ft_putunbr(n / 10, len);
ft_putchar((n % 10) + '0', len);
}
else
ft_putchar(n % 10 + '0', len);
}