-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putptr.c
More file actions
23 lines (20 loc) · 1.02 KB
/
ft_putptr.c
File metadata and controls
23 lines (20 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putptr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kfouad < kfouad@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/29 17:29:15 by kfouad #+# #+# */
/* Updated: 2022/11/03 19:02:56 by kfouad ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putptr(unsigned long ptr)
{
int count;
count = 0;
count += ft_putstr("0x");
count += ft_put_hex(ptr);
return (count);
}