Subject: Re: LP64 advice
To: matthew green <mrg@eterna.com.au>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-sparc64
Date: 01/26/2003 10:21:01
On Sun, Jan 26, 2003 at 08:49:01PM +1100, matthew green wrote:

 >    what is normally done for printfs of addresses? eg
 >    
 >    	printf("%d", ptr - otherptr);
 > 
 > 
 > %p is for pointers.  however, "ptr - otherptr" has a return value of
 > size_t or is it ptrdiff_t?  ummmm for that we don't have a good solution
 > unless there is an <inttypes.h> for it... but i don't see one..

That returns a ptrdiff_t.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>