17 Oct
2012
17 Oct
'12
2:05 p.m.
On Wed, Oct 17, 2012 at 11:22:49AM +0100, Arran Cudbard-Bell wrote:
Sorry, I meant "%lu", (unsigned long)sizeof(...)
Hmm, but size_t could be 64bits, long is only guaranteed to be 32bits? If you use unsigned long long and %llu you're into C99 features.
Yes in theory, although in practice I would be extremely surprised to find a platform where long is 32 bits and size_t is 64 bits. Anyway, "%zu" FTW.