#include // for fseek, FILE, SEEK_CUR, ftello #include // for off_t off_t ftello(FILE *stream) { return fseek(stream, 0, SEEK_CUR); }