home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / stdio / fsetpos.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-13  |  283 b   |  16 lines

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. #include <stdio.h>
  3. #include <errno.h>
  4.  
  5. int
  6. fsetpos(FILE *stream, const fpos_t *pos)
  7. {
  8.   if (stream && pos)
  9.   {
  10.     fseek(stream, (long)(*pos), SEEK_SET);
  11.     return 0;
  12.   }
  13.   errno = EFAULT;
  14.   return 1;
  15. }
  16.