From 189d7087a3ba9c305243d3872f19387e025dd71d Mon Sep 17 00:00:00 2001 From: Baptiste Wicht Date: Sun, 24 Jul 2016 12:54:01 +0200 Subject: [PATCH] Pointer printing --- printf/include/printf_def.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/printf/include/printf_def.hpp b/printf/include/printf_def.hpp index 7ecb36a8..df8cd664 100644 --- a/printf/include/printf_def.hpp +++ b/printf/include/printf_def.hpp @@ -80,8 +80,8 @@ std::string vsprintf(const std::string& format, va_list va){ s += std::to_string(arg); } //Hexadecimal - else if(ch == 'h' || ch == 'x'){ - if(ch == 'h'){ + else if(ch == 'h' || ch == 'x' || ch == 'p'){ + if(ch == 'h' || ch == 'p'){ s += "0x"; }