Possible Duplicate:
How should I print types like off_t and size_t?
I'm using fstat(stream, &fs)
to get a file size in C which returns type off_t
.
Printing this just gives a warning:
format ‘%d’ expects type ‘int’, but argument has type ‘off_t’
Any ideas how to print this without compiler errors?