*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: fseek | Section: 3 | Source: UNIX v7 | File: fseek.3s
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)

Navigation Options