home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c065 / 1.ddi / CLIB1.ZIP / FSETPOS.C < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-07  |  1.4 KB  |  41 lines

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