-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprint_unsigned.c
More file actions
24 lines (22 loc) · 1.06 KB
/
print_unsigned.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_unsigned.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bguzel <bguzel@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/10 19:56:45 by bguzel #+# #+# */
/* Updated: 2022/11/20 16:24:51 by bguzel ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void print_unsigned(unsigned int c, int *count)
{
if (c > 9)
{
print_unsigned(c / 10, count);
print_unsigned(c % 10, count);
}
else
print_char(c + 48, count);
}