|
||
int fsetpos( FILE *fp, fpos_t *pos )
FILE *fp; /* open stream pointer */ fpos_t *pos; /* structure to hold file position information */
|
|
|
Synopsis |
#include "stdio.h"
The fsetpos function sets the current file position in fp to the value held by the structure pointed to by pos , as retrieved by fsetpos .
|
|
Parameters |
fp is an open file stream. pos is the address of a file position structure (fpos_t is defined in stdio.h).
|
|
Return Value |
fsetpos sets the current file position and returns 0 if successful, and a non-zero value if not.
|
|
Comments |
The fpos_t type is provided for recording file positions, where the possible length of the file is too large to be represented in a long integer.
|
|
See Also |
|
|
|
|