2007-10-15 11:42:17 +02:00
|
|
|
#include <stdio.h>
|
2006-09-07 16:14:53 +02:00
|
|
|
int fseek(FILE* file,long offset,int origin)
|
|
|
|
{
|
|
|
|
if (origin==SEEK_CUR)
|
|
|
|
offset+=file->filepos;
|
|
|
|
else if (origin==SEEK_END)
|
|
|
|
offset+=file->filesize;
|
|
|
|
else if (origin!=SEEK_SET)
|
|
|
|
return EOF;
|
|
|
|
return fsetpos(file,offset);
|
|
|
|
}
|