fsetpos positions stream at the position recorded by fgetpos in *ptr.fsetpos returns non-zero on error.It is one of the file positioning function.

Prototype edit

int fsetpos(file *stream, const fpos_t *ptr)

Reference edit

The C programing language(Second edition)