-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_print_hex_low.c
20 lines (18 loc) · 1.05 KB
/
ft_print_hex_low.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_hex_low.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ael-maim <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/23 09:33:52 by ael-maim #+# #+# */
/* Updated: 2023/11/27 19:48:10 by ael-maim ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_print_hex_low(unsigned long long i, int *len)
{
if (i >= 16)
ft_print_hex_low(i / 16, len);
ft_print_index("0123456789abcdef", i % 16, len);
}