Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
647 andrew_pro 1
#include 
2
int fseek(FILE* file,long offset,int origin)
3
{
6412 siemargl 4
    fpos_t pos;
647 andrew_pro 5
	if (origin==SEEK_CUR)
6
		offset+=file->filepos;
7
	else if (origin==SEEK_END)
8
		offset+=file->filesize;
9
	else if (origin!=SEEK_SET)
10
		return EOF;
6412 siemargl 11
	pos = offset;
12
	return fsetpos(file, &pos);
647 andrew_pro 13
}