Skip to content

Should we print pointers like glibc does? #202

Description

@eyalroz

glibc printf pointers like so: printf("%5p",(void *) 0x7b) gives you 0x7b. That is, no minimum width, no zero-padding by default, and with space-padding before the 0x. We do use a minimum width based on the size of pointers and we zero-pad (except for NULL). Should we switch to the way gcc does it?

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions