Subversion Repositories Kolibri OS

Rev

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

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