Possible duplicate:
How do I print types like off_t and size_t?
I use fstat(stream, &fs)to get the file size in C, which returns a type off_t.
Printing this message simply gives a warning:
format ‘%d’ expects type ‘int’, but argument has type ‘off_t’
Any ideas on how to print this without compiler errors?
source
share