News for hackers. Stuff that matters.
Re:Deep C by pwaring on Monday October 10, 2011 @02:50PM (#3095198)
If you're being sensible and using -Wall with gcc, it will pick up the %zu thing anyway:

sizeof-test.c: In function ‘main’: sizeof-test.c:5:3: warning: format ‘%d’ expects type ‘int’, but argument 2 has type ‘long unsigned int’

Compilers have warnings so that you don't have to remember archaic bits of C. :)

There are no comments on this comment yet.