Skip to content

Change %p formatting to match glibc#90

Open
elipsitz wants to merge 2 commits intompaland:masterfrom
elipsitz:master
Open

Change %p formatting to match glibc#90
elipsitz wants to merge 2 commits intompaland:masterfrom
elipsitz:master

Conversation

@elipsitz
Copy link

@elipsitz elipsitz commented Oct 1, 2020

The %p format is not defined by the standard, that is, it's implementation specific. However, many people are used to what glibc prints: 0x to emphasize that pointers are printed as hex, and a special "(nil)" string when a null pointer is provided, and lower-case letters for hex digits.

This fixes #57 and fixes #84.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

%p prints uppercase alphabets %p format

3 participants