Ben Greear wrote:
> ...
>>
>> %j and intmax_t is ISO C99 portable. It sucks because it means casting
>> to the widest integer type on the platform, but it's a known quantity.
>> 'long long' has been a problem since well before Sun brought out 
>> SPARCV9.
>
> From MS's page, they may not support %j (or %ll for that matter).  Maybe
> the just don't document it:

There are a number of places where MS don't fully comply with the ISO 
C99 spec in either their CL.EXE compiler or the runtime library 
MSVCRT.DLL, this is but one of them.

They have made more progress towards this in MSVC 7 and 8, but it's 
still far from ideal. The snprintf() behaviour took a bit of hacking to 
track down in the textual XRL code.

I'd still be much happier if intmax_t is used, because it's a portable 
code construct.

cheers,
BMS

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to