-
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.03 KB
/
ft_putptr.c
File metadata and controls
23 lines (20 loc) · 1.03 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: slepetit <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/04/28 14:53:25 by slepetit #+# #+# */
/* Updated: 2022/04/28 22:18:43 by slepetit ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
size_t ft_putptr(unsigned long ptr)
{
size_t i;
i = 0;
i += ft_putstr("0x");
i += ft_puthexa(ptr, "0123456789abcdef");
return (i);
}