# PVK_setpos( ): Set Address/Position of File

> Source: https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/setpos

## Format

int **PVK_setpos**(int *fh*, long *addr*);

***Where:***

|  |  |
| --- | --- |
| *fh* | File handle returned from a prior call to **[PVK_OpenExt( )](https://manual.pvxplus.com/c-library-file-io-routines/file-io-routines/openext)** |
| *addr* | Address/position of the record |

## Description

**PVK_setpos( )** sets the current record address based on the specified address. If successful, a status of 0 is returned.
