Set the current position of a file
#include <stdio.h>
int fsetpos( FILE* fp,
const fpos_t* pos );
libc
The fsetpos() function sets the current position of the stream specified by fp according to the value of the fpos_t object pointed to by pos.
The value pointed to by pos must have been set by a call to fgetpos() on the same file.
0 for success, or nonzero if an error occurs (errno is set).
See fgetpos().
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | Yes |
| Thread | Yes |
errno, fgetpos(), fopen(), fseek(), ftell()