[c] How should I print types like off_t and size_t?

You'll want to use the formatting macros from inttypes.h.

See this question: Cross platform format string for variables of type size_t?