From d63d6916249f5b40b81097854d8ca2c9d4d7d071 Mon Sep 17 00:00:00 2001 From: Charles Date: Wed, 30 Oct 2019 23:35:40 +0100 Subject: Normed converters --- convert_ptr.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'convert_ptr.c') diff --git a/convert_ptr.c b/convert_ptr.c index 2c288ac..aa24cb5 100644 --- a/convert_ptr.c +++ b/convert_ptr.c @@ -1,11 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* convert_ptr.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/30 23:24:08 by cacharle #+# #+# */ +/* Updated: 2019/10/30 23:25:33 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include #include #include "header.h" char *convert_ptr(va_list ap, t_pformat *pformat) { - char *str = ITOA_HEX_LOW((long long unsigned int)va_arg(ap, void*)); + char *str; + str = ITOA_HEX_LOW((long long unsigned int)va_arg(ap, void*)); str = handle_precision(pformat, str); str = add_hex_prefix(str); str = handle_padding(pformat, str); -- cgit