13 lines
225 B
C
13 lines
225 B
C
#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);
|
|
}
|