##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# fsetpos

From cppreference.com
< c‎ | io

Defined in header `<stdio.h>` |  |
int fsetpos( FILE *stream, const fpos_t *pos ); |  |

Sets the file position indicator for the file stream `stream` to the value pointed to by `pos`.

### [edit] Parameters

stream | - | file stream to modify
pos | - | pointer to a fpos_t object to use as new value of file position indicator

### [edit] Return value

​0​ upon success, nonzero value otherwise.

### [edit] See also

fgetpos | gets the file position indicator (function) [edit]
ftell | returns the current file position indicator (function) [edit]
fseek | moves the file position indicator to a specific location in a file (function) [edit]
C++ documentation for fsetpos

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=c/io/fsetpos&oldid=56449"