-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_print_hexu.c
More file actions
26 lines (23 loc) · 1.08 KB
/
ft_print_hexu.c
File metadata and controls
26 lines (23 loc) · 1.08 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
25
26
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_X.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adiaz-lo <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/09/25 08:41:08 by adiaz-lo #+# #+# */
/* Updated: 2023/09/25 08:49:29 by adiaz-lo ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_print_hexu(unsigned long num)
{
char *str;
int count;
str = ft_itoa_base(num, HEXU);
count = 0;
ft_putstr_fd(str, 1);
count = ft_strlen(str);
free (str);
return (count);
}