-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_printf_ptr.c
20 lines (18 loc) · 1.04 KB
/
ft_printf_ptr.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_printf_ptr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: jmartin <jmartin@student.42lausanne.ch> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/11/07 11:06:04 by jmartin #+# #+# */
/* Updated: 2021/11/08 20:58:41 by jmartin ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_printf_ptr(void *ptr, int *rcount)
{
ft_printf_str("0x", rcount);
ft_printf_hex((unsigned long)ptr, rcount, 'p');
return (*rcount);
}