-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_print_ptr.c
More file actions
23 lines (20 loc) · 1.05 KB
/
ft_print_ptr.c
File metadata and controls
23 lines (20 loc) · 1.05 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_print_ptr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: alisharu <alisharu@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/01/28 18:56:51 by alisharu #+# #+# */
/* Updated: 2025/01/30 20:42:57 by alisharu ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
int ft_print_ptr(unsigned long value, int asc)
{
int count;
count = 0;
count += ft_putstr("0x");
count += ft_print_hex(value, asc);
return (count);
}