blob: 6459a6ff45710aa8aa3d1d15540103e0aa50a029 (
plain)
1
2
3
4
5
6
7
8
9
10
|
#include <dietstdio.h>
#include <unistd.h>
int fseeko(FILE *stream, off_t offset, int whence) {
fflush(stream);
stream->bm=0; stream->bs=0;
stream->flags&=~(ERRORINDICATOR|EOFINDICATOR);
stream->ungotten=0;
return lseek(stream->fd,offset,whence)!=-1?0:-1;
}
|