mirror of
https://github.com/siemens-mobile-hacks/dc166-patch.git
synced 2026-11-26 03:47:23 +00:00
12 lines
265 B
C
12 lines
265 B
C
#include "dc166_stdio.h"
|
|
|
|
int fsetpos(FILE *stream, const fpos_t *position)
|
|
{
|
|
fflush(stream);
|
|
if (_lseek((int)stream->_file, (long)*position, SEEK_SET) == -1L) {
|
|
errno = ERR_POS;
|
|
return EOF;
|
|
}
|
|
stream->_flag &= (unsigned short)~_IOEOF;
|
|
return 0;
|
|
}
|