Subversion Repositories Kolibri OS

Rev

Rev 6433 | 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.                 file->ungetc_buf = EOF;
  14.                 return 0;
  15.         }
  16.         else
  17.                 return EOF;
  18. }
  19.