/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_putvd.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: erey-bet +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2022/10/14 23:01:21 by erey-bet #+# #+# */ /* Updated: 2022/11/25 15:29:24 by erey-bet ### ########.fr */ /* */ /* ************************************************************************** */ #include "ft_printf.h" int ft_putvd_fd(void *v, int fd) { int count; unsigned long u; if (v == NULL) return (ft_putstr_fd("(nil)", fd)); u = (unsigned long)v; count = 2; ft_putstr_fd("0x", fd); count += ft_putnbrhex_fd(u, fd); return (count); }