Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fseek(3s)

fgetpos(3s)

Name

fgetpos, fsetpos − save and restore stream position

Syntax

#include <stdio.h>

int fgetpos (stream, pos)
FILE *stream;
fpos_t *pos;

int fsetpos (stream, pos)
FILE *stream;
fpos_t *pos;

Description

The fgetpos function stores the current position of stream in pos. 

The fsetpos function restores stream to the position returned by an earlier fgetpos call.

Return Values

If successful, the return value is zero; on failure, a nonzero value is returned and errno is set to the appropriate value. 

See Also

fseek(3s)

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026