-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putptr_pf.c
25 lines (22 loc) · 1.13 KB
/
ft_putptr_pf.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
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putptr_pf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adiaz-be <adiaz-be@student.42malaga.c +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/15 15:13:04 by adiaz-be #+# #+# */
/* Updated: 2022/10/15 15:14:41 by adiaz-be ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putptr_pf(void *ptr, size_t *counter)
{
char *str;
unsigned long ptr_address;
ptr_address = (unsigned long)ptr;
ft_putstr_pf("0x", counter);
str = ft_aux_pf(ptr_address, HEX_LOW_BASE);
ft_putstr_pf(str, counter);
free(str);
}