#include <__cross_studio_io.h>
int debug_fseek(DEBUG_FILE *stream, long offset, int origin);
debug_fseek sets the file position for stream; a subsequent read or write will access data at that position. The origin can be one of:
0 sets the position to offset bytes from the
beginning of the file
1 sets the position to offset bytes relative to to the current
position
2 sets the position to offset bytes from the
end of the file
Note that for text files offset must be zero. debug_fseek returns non-zero on error.
debug_fseek is an extension provided by CrossWorks C.