man pages section 3: Basic Library Functions
  Suchtext Nur in diesem Buch
Dieses Buch im PDF-Format herunterladen (4217 KB)

fileno(3C)

Name | Synopsis | Description | Attributes | See Also

Name

    ferror, feof, clearerr, fileno– stream status inquiries

Synopsis

    #include <stdio.h>
    
    int ferror(FILE *stream);
    int feof(FILE *stream);
    void clearerr(FILE *stream);
    int fileno(FILE *stream);

Description

    The ferror() function returns a non-zero value when an error has previously occurred reading from or writing to the named stream (see Intro(3)). It returns 0 otherwise.

    The feof() function returns a non-zero value when EOF has previously been detected reading the named input stream. It returns 0 otherwise.

    The clearerr() function resets the error indicator and EOF indicator to 0 on the named stream.

    The fileno() function returns the integer file descriptor associated with the named stream; see open(2).

Attributes

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPE 

    ATTRIBUTE VALUE 

    Interface Stability 

    Standard 

    MT-Level 

    MT-Safe 

See Also

SunOS 5.11  Last Revised 17 Feb 2005

Name | Synopsis | Description | Attributes | See Also