-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_puthexa.c
24 lines (21 loc) · 1.05 KB
/
ft_puthexa.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_puthexa.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: made-ara <made-ara@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/08/05 19:47:41 by made-ara #+# #+# */
/* Updated: 2024/08/07 11:32:46 by made-ara ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_puthexa(unsigned long n, char x)
{
char *str;
int len;
str = ft_itoahexa(n, x);
len = write(1, str, ft_strlen(str));
free(str);
return (len);
}