S
Seebs
But do any of them make ptrdiff_t (or any other predefined typedef)
wider than long? If not, then using "%ld" and a cast to long is
enough for this particular case. (And even if ptrdiff_t is wider
than long, it's only a problem if the actual value being printed
exceeds LONG_MAX.)
I'm not sure. I think there is probably at least one with 64-bit pointers
and 32-bit longs.
Ah, well. I don't actually care anymore; I just ignore implementations which
don't have long long, snprintf, and designated initializers. For the most
part this works out.
-s