Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : FSETPOS.C

 
Output of file : FSETPOS.C contained in archive : VCCRT2.ZIP
/***
*fsetpos.c - Contains fsetpos runtime
*
* Copyright (c) 1987-1992, Microsoft Corporation. All Rights Reserved.
*
*Purpose:
* Fsetpos sets the file position using an internal value
* returned by an earlier fgetpos call.
*
*******************************************************************************/

#include


/***
*int fsetpos(stream,pos) - Set file positioning
*
*Purpose:
* Fsetpos sets the file position for the file indicated by [stream] to
* the position indicated by [pos]. The [pos] value is defined to be in
* an internal format (not to be interpreted by the user) and has been
* generated by an earlier fgetpos call.
*
*Entry:
* FILE *stream = pointer to a file stream value
* fpos_t *pos = pointer to a file positioning value
*
*Exit:
* Successful call returns 0.
* Unsuccessful call returns non-zero (!0).
*
*Exceptions:
* None.
*******************************************************************************/

int fsetpos(stream,pos)

FILE *stream;
const fpos_t *pos;

{
return(fseek(stream,*pos,SEEK_SET));
}


  3 Responses to “Category : C++ Source Code
Archive   : VCCRT2.ZIP
Filename : FSETPOS.C

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/