[#AutoFile-seek]
= xref:AutoFile.adoc[AutoFile]::seek
:relfileprefix: ../
:mrdocs:

Wrapper around fseek()&period; Will throw if seeking is not possible&period;

== Synopsis

Declared in `&lt;streams&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
seek(
    int64&lowbar;t offset,
    int origin);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *offset*
| Byte offset to seek to, interpreted relative to `origin`&period;
| *origin*
| Reference point for the seek (e&period;g&period; SEEK&lowbar;SET, SEEK&lowbar;CUR, SEEK&lowbar;END)&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
