Sun Microsystems, Inc.
spacerspacer
spacer   www.sun.com docs.sun.com | | |  
spacer
black dot
   
A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z
    
 
Standard C Library Functionsferror(3C)


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 valuewhen 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 TYPEATTRIBUTE VALUE
MT-LevelMT-Safe

SEE ALSO

 

open(2), intro(3), fopen(3C), stdio(3C), attributes(5)


SunOS 5.9Go To TopLast Changed 30 Dec 1996

 
      
      
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.