[Previous] [Contents] [Next]

fsetpos()

Set the current position of a file

Synopsis:

#include <stdio.h>

int fsetpos( FILE* fp, 
             const fpos_t* pos );

Library:

libc

Description:

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.

Returns:

0 for success, or nonzero if an error occurs (errno is set).

Examples:

See fgetpos().

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

errno, fgetpos(), fopen(), fseek(), ftell()


[Previous] [Contents] [Next]