Subject: Re: number base printing conventions
To: Erik E. Fair <fair@clock.org>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-kern
Date: 07/28/1997 13:54:15
On Mon, 28 Jul 1997 13:51:08 -0700 
 "Erik E. Fair" (Timekeeper) <fair@clock.org> wrote:

 > Didn't check %p beyond reading the man page for printf(3) which
 > says it's "%x" for "void *" without any further elaboration.
 > Doc bug, I guess.

Sounds like it:

lestat (thorpej) /tmp 405% cat foo.c
main()
{
        printf("%p\n", main);
}
lestat (thorpej) /tmp 406% ./a.out
0x2a4c
lestat (thorpej) /tmp 407% 

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-6                                       Work: +1 415 604 0935
Moffett Field, CA 94035                             Pager: +1 415 428 6939