mpaland/printf

%p format

ledvinap opened this issue · 2 comments

For consideration: Maybe it would be useful to change %p format to be compatible with libc:

In the GNU C Library, non-null pointers are printed as unsigned integers, as if a ‘%#x’ conversion were used. Null pointers print as ‘(nil)’. (Pointers might print differently in other systems.)

Or make this compile-time configurable ...

Good point. I'll check this

Fixed on my fork thanks to Eli Lipsitz, in commit 5fdbaa7.