home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c082_122 / 1.ddi / CLIBSRC.ZIP / FSETPOS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1992-06-10  |  1016 b   |  40 lines

  1. /*-----------------------------------------------------------------------*
  2.  * filename - fsetpos.c
  3.  *
  4.  * function(s)
  5.  *        fsetpos - positions the file pointer on a stream
  6.  *-----------------------------------------------------------------------*/
  7.  
  8. /*
  9.  *      C/C++ Run Time Library - Version 5.0
  10.  *
  11.  *      Copyright (c) 1987, 1992 by Borland International
  12.  *      All Rights Reserved.
  13.  *
  14.  */
  15.  
  16.  
  17. #include <stdio.h>
  18.  
  19. /*-----------------------------------------------------------------------*
  20.  
  21. Name            fsetpos - positions the file pointer on a stream
  22.  
  23. Usage           #include <stdio.h>
  24.                 int fsetpos(FILE *stream, const fpos_t *pos);
  25.  
  26. Prototype in    stdio.h
  27.  
  28. Description     sets the file pointer using fseek
  29.  
  30. Return value    success : 0
  31.                 failure : non-zero
  32.  
  33. *------------------------------------------------------------------------*/
  34.  
  35.  
  36. int     fsetpos(FILE *stream, const fpos_t *pos)
  37. {
  38.         return fseek(stream, *pos, SEEK_SET);
  39. }
  40.