MicrOS
fsetpos.c File Reference
#include "../stdio.h"

Functions

int fsetpos (FILE *stream, const fpos_t *pos)
 Set position indicator of stream. More...
 

Function Documentation

◆ fsetpos()

int fsetpos ( FILE stream,
const fpos_t pos 
)

Set position indicator of stream.

Restores the current position in the stream to pos.

Parameters
streamPointer to a FILE object that identifies the stream to be closed.
posPointer to a fpos_t object containing a position previously obtained with fgetpos.
Returns
If successful, the function returns zero. On failure, a non-zero value is returned and errno is set to a system-specific positive value.