C++ Programming/Code/Standard C Library/Functions/fsetpos

From Wikibooks, open books for an open world
Jump to navigation Jump to search

fsetpos[edit | edit source]

#include <cstdio>
int fsetpos( FILE *stream, const fpos_t *position );

The fsetpos() function moves the file position indicator for the given stream to a location specified by the position object. fpos_t is defined in cstdio. The return value for fsetpos() is zero upon success, non-zero on failure.

Related topics
fgetpos - fseek - ftell