-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprint_ptr.c
More file actions
19 lines (17 loc) · 1 KB
/
print_ptr.c
File metadata and controls
19 lines (17 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_ptr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: bguzel <bguzel@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/11/10 20:01:54 by bguzel #+# #+# */
/* Updated: 2022/11/20 16:24:46 by bguzel ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
void print_ptr(unsigned long ptr, int *count)
{
*count += write(1, "0x", 2);
print_hex(ptr, 'p', count);
}