DataMuseum.dk

Presents historical artifacts from the history of:

ICL Comet 32

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about ICL Comet 32

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download

⟦949258ba9⟧ TextFile

    Length: 1128 (0x468)
    Types: TextFile
    Notes: UNIX file
    Names: »fseek.3s«

Derivation

└─⟦26887b7e0⟧ Bits:30009717 Comet 32 harddisk image
    └─⟦28c352965⟧ »/a« UNIX Filesystem
        └─⟦this⟧ »usr/man/man3/fseek.3s« 

TextFile

.ig
	@(#)fseek.3s	2.1	7/1/84
	@(#)Copyright (C) 1983 by National Semiconductor Corp.
..
.TH FSEEK 3S 
.SH NAME
fseek, ftell, rewind \- reposition a stream
.SH SYNOPSIS
.B #include <stdio.h>
.PP
.B fseek(stream, offset, ptrname)
.br
.SM
.B FILE
.B *stream;
.br
.B long offset;
.PP
.B long ftell(stream)
.br
.SM
.B FILE
.B *stream;
.PP
.B rewind(stream)
.SH DESCRIPTION
.I Fseek
sets the position of the next input or output
operation on the
.IR stream .
The new position is at the signed distance
.I offset
bytes
from the beginning, the current position, or the end of the file,
according to 
the value (0, 1, or 2, respectively) of 
.I ptrname.
.PP
.I Fseek
undoes any effects of
.IR  ungetc (3).
.PP
.I Ftell
returns the current value of the offset relative to the beginning
of the file associated with the named
.IR stream .
It is measured in bytes on UNIX;
on some other systems it is a magic cookie,
and the only foolproof way to obtain an 
.I offset
for
.IR fseek .
.PP
.I Rewind(stream)
is equivalent to
.I "fseek(stream, 0L, 0)."
.SH "SEE ALSO"
lseek(2),
fopen(3)
.SH DIAGNOSTICS
.I Fseek
returns \-1 for improper seeks.