Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fseek(3f) — Ultrix-11 3.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fseek(3s)

perror(3f)

fseek(3f)

NAME

fseek, ftell − reposition a file on a logical unit

SYNTAX

integer*4 function fseek(lunit, offset, from)
integer*4 offset
integer from

integer*4 function ftell(lunit)

DESCRIPTION

The lunit must refer to an open logical unit.  The offset is an offset in bytes relative to the position specified by from.  Valid values for from are:

0Beginning of the file

1Current position

2The end of the file

The value returned by fseek will be 0 if successful, a system error code otherwise.  For further information, see perror(3f). 

The ftell function returns the current position of the file associated with the specified logical unit.  The value is an offset, in bytes, from the beginning of the file.  If the value returned is negative, it indicates an error and will be the negation of the system error code.  For further information, see perror(3f). 

FILES

/usr/lib/libU77.a

SEE ALSO

fseek(3s), perror(3f)

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