cross platform
    Joseph Koshy 
    joseph.koshy at gmail.com
       
    Sun Feb 13 04:50:47 GMT 2005
    
    
  
>  - How do I know which is the right directive? Is this documented
>    somewhere?
What's the problem exactly?
I had a problem with printing uint64_t values portably between
the AMD 64 and i386.  My debug printfs had to use either
"%lx" or "%llx".  The workaround (hack) was to use CPP
liberally (#define U64FORMAT "%l" or "%ll").
I wonder if there is a better (more portable) way.
-- 
FreeBSD Volunteer, http://people.freebsd.org/~jkoshy
    
    
More information about the freebsd-current
mailing list