off_t for file offsets
ptrdiff_t for memory offsets (vs. size_t for unsigned)
int for return flags
A problem with this is that printf does not have sizes to match these.
Silently increasing the size of an int is more likely to break things than it'll be helpful. If you really want an int to be 32 bit on a 32 bit machine and 64 bit on a 64 bit machine, make it explicit (e.g. intptr_t for pointers)
That said, the code bases that target both 64- and 8-bit architectures probably aren't that many and both our points are insignificant in those other 99.9% of cases.
For size_t: "%zu"
There's no format for off_t, though. The best you can do is to typecast it to intmax_t, and then use "%jd".
I doubt either of these situations come up when dealing with line sizes in a text editor.
Neither of these situations is happening in a text editor application though.