-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_putaddr.c
More file actions
23 lines (20 loc) · 1.02 KB
/
ft_putaddr.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_putaddr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/07 22:56:56 by zelhajou #+# #+# */
/* Updated: 2022/12/13 05:21:22 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_putaddr(unsigned long addr)
{
int len;
len = 0;
len += ft_putstr("0x");
len += ft_puthex(addr, 'x');
return (len);
}