Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fgetpos(3C) — svr4 — mips UMIPS RISC/os 5.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fseek(3S)

lseek(2)

ungetc(3S)



FSETPOS(3C-SVR4)    RISC/os Reference Manual     FSETPOS(3C-SVR4)



NAME
     fsetpos, fgetpos - reposition a file pointer in a stream

SYNOPSIS
     #include <stdio.h>

     int fsetpos (FILE *stream, const fpost *pos);

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

DESCRIPTION
     fsetpos sets the position of the next input or output opera-
     tion on the stream according to the value of the object
     pointed to by pos.  The object pointed to by pos must be a
     value returned by an earlier call to fgetpos on the same
     stream.

     fsetpos clears the end-of-file indicator for the stream and
     undoes any effects of the ungetc function on the same
     stream. After fsetpos, the next operation on a file opened
     for update may be either input or output.

     fgetpos stores the current value of the file position indi-
     cator for stream in the object pointed to by pos.  The value
     stored contains information usable by fsetpos for reposi-
     tioning the stream to its position at the time of the call
     to fgetpos.

     If successful, both fsetpos and fgetpos return zero. Other-
     wise, they both return nonzero.

SEE ALSO
     fseek(3S), lseek(2) ungetc(3S).






















                        Printed 11/19/92                   Page 1



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