Annotation of researchv10dc/man/adm/man3/fseek.3, revision 1.1

1.1     ! root        1: .TH FSEEK 3S
        !             2: .CT 2 file_io
        !             3: .SH NAME
        !             4: fseek, ftell, rewind \(mi reposition a stream
        !             5: .SH SYNOPSIS
        !             6: .nf
        !             7: .B #include <stdio.h>
        !             8: .PP
        !             9: .B int fseek(stream, offset, ptrname)
        !            10: .B FILE *stream;
        !            11: .B long offset;
        !            12: .PP
        !            13: .B long ftell(stream)
        !            14: .B FILE *stream;
        !            15: .PP
        !            16: .B int rewind(stream)
        !            17: .fi
        !            18: .SH DESCRIPTION
        !            19: .I Fseek
        !            20: sets the position of the next input or output
        !            21: operation on the
        !            22: .IR stream .
        !            23: The new position is at the signed distance
        !            24: .I offset
        !            25: bytes
        !            26: from the beginning, the current position, or the end of the file,
        !            27: as
        !            28: .I ptrname
        !            29: has the value 0, 1 or 2 respectively.
        !            30: .PP
        !            31: .I Ftell
        !            32: returns the current value of the file pointer for the file
        !            33: associated with the named
        !            34: .IR stream .
        !            35: .PP
        !            36: .IR Rewind ( stream )
        !            37: is equivalent to
        !            38: .BR "fseek(stream, 0L, 0)" .
        !            39: .SH "SEE ALSO"
        !            40: .IR lseek (2),
        !            41: .IR stdio (3)
        !            42: .SH DIAGNOSTICS
        !            43: .I Fseek
        !            44: returns \-1
        !            45: for improper seeks.
        !            46: .SH BUGS
        !            47: The interaction of
        !            48: .I fseek
        !            49: and
        !            50: .IR ungetc (3)
        !            51: is undefined.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.