#include <__cross_studio_io.h>
int debug_ftell(DEBUG_FILE *stream, long *offset);
debug_ftell writes the current file position of stream to the object pointed to by offset.
debug_ftell returns EOF on error:
debug_ftell is an extension provided by CrossWorks C.