#include "libft.h" int ft_putptr(void *ptr) { int count = 0; count += ft_putstr("0x"); if (!ptr) count += ft_putchar('0'); else count += ft_putaddr((unsigned long)ptr); return (count); }