printf icon indicating copy to clipboard operation
printf copied to clipboard

%p format

Open ledvinap opened this issue 5 years ago • 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 ...

ledvinap avatar Apr 29 '19 15:04 ledvinap

Good point. I'll check this

mpaland avatar Jan 01 '20 17:01 mpaland

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

eyalroz avatar Aug 03 '21 21:08 eyalroz