/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putvd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/14 23:01:21 by erey-bet #+# #+# */ /* Updated: 2022/11/21 19:26:59 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #include "ft_printf.h" int ft_putvd(void *v) { int count; unsigned long u; if (v == NULL) return (-2); u = (unsigned long)v; count = 2; ft_putstr("0x"); count += ft_putnbrhex(u); return (count); }