fseek man page on UNIXv7

Man page or keyword search:  
man Server   300 pages
apropos Keyword Search (all sections)
Output format
UNIXv7 logo
[printable version]

FSEEK(3S)							     FSEEK(3S)

NAME
       fseek, ftell, rewind - reposition a stream

SYNOPSIS
       #include <stdio.h>

       fseek(stream, offset, ptrname)
       FILE *stream;
       long offset;

       long ftell(stream)
       FILE *stream;

       rewind(stream)

DESCRIPTION
       Fseek  sets  the	 position of the next input or output operation on the
       stream.	The new position is at the signed distance offset  bytes  from
       the  beginning, the current position, or the end of the file, according
       as ptrname has the value 0, 1, or 2.

       Fseek undoes any effects of ungetc(3).

       Ftell returns the current value of the offset relative to the beginning
       of  the file associated with the named stream.  It is measured in bytes
       on UNIX; on some other systems it is a magic cookie, and the only fool‐
       proof way to obtain an offset for fseek.

       Rewind(stream) is equivalent to fseek(stream, 0L, 0).

SEE ALSO
       lseek(2), fopen(3)

DIAGNOSTICS
       Fseek returns -1 for improper seeks.

								     FSEEK(3S)
[top]

List of man pages available for UNIXv7

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net