#include <io.h> off_t tell(int file);
This function returns the location of the file pointer for file.
The file pointer, or -1 on error.
off_t q = tell(fd);