diff options
Diffstat (limited to 'convert_ptr.c')
| -rw-r--r-- | convert_ptr.c | 15 |
1 files changed, 14 insertions, 1 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/10/30 23:24:08 by cacharle #+# #+# */ +/* Updated: 2019/10/30 23:25:33 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + #include <stdarg.h> #include <stdlib.h> #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); |
