Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include "stdio.h"
  2. int fseek(FILE* file,long offset,int origin)
  3. {
  4.         if (origin==SEEK_CUR)
  5.                 offset+=file->filepos;
  6.         else if (origin==SEEK_END)
  7.                 offset+=file->filesize;
  8.         else if (origin!=SEEK_SET)
  9.                 return EOF;
  10.         return fsetpos(file,offset);           
  11. }