-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_putptr_pf.c
25 lines (22 loc) · 1.12 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: allera-m <allera-m@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/04/22 04:23:52 by marvin #+# #+# */
/* Updated: 2023/05/11 11:24:34 by allera-m ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void ft_putptr_pf(void *ptr, size_t *counter)
{
char *str;
unsigned long ptr_add;
ptr_add = (unsigned long)ptr;
ft_putstr_pf("0x", counter);
str = ft_aux_pf(ptr_add, HEX_LOW_BASE);
ft_putstr_pf(str, counter);
free(str);
}