Sets the file position indicator for a given file.
Format
#include <stdio.h>
int fsetpos (FILE *stream, const fpos_t *pos);
Arguments
- stream
- A file pointer.
- pos
- A pointer to an implementation-defined structure. The fgetpos
function fills this structure with information that can be used on
subsequent calls to fsetpos.
Description
Call the fgetpos function before using the fsetpos function.
Return Values
0 | Indicates success. |
-1 | Indicates an error. |
Previous Page | Next Page | Table of Contents | Index