Subversion Repositories Kolibri OS

Rev

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

  1. #include <stdio.h>
  2. int fsetpos(FILE* file,const fpos_t * pos)
  3. {
  4.     if(!file || !pos)
  5.     {
  6.         errno = E_INVALIDPTR;
  7.         return errno;
  8.     }
  9.  
  10.         if (*pos>=0)
  11.         {
  12.                 file->filepos=*pos;
  13.                 return 0;
  14.         }
  15.         else
  16.                 return EOF;
  17. }
  18.