15static int ft_hex_char_count(
unsigned long n)
28static char ft_decimal16_to_hex(
int dec)
53 len = ft_hex_char_count(n);
54 str = (
char *)
ft_calloc(len + 1,
sizeof(
char));
59 hex = ft_decimal16_to_hex(n % 16);
char * ft_ulongtohex(unsigned long n)
Unsigned long to lowercase hexadesimal string.
void * ft_calloc(size_t count, size_t size)
Allocate and zero.