NAME

fileno - stream status inquiries

SYNOPSIS

#include <stdio.h>

int fileno ( FILE *stream );
DESCRIPTION
The fileno() function shall return the integer file descriptor associated with the stream pointed to by stream
RETURN VALUE
Upon successful completion, fileno() shall return the integer value of the file descriptor associated with stream. Otherwise, the value -1 shall be returned and errno set to indicate the error.



SEE ALSO

open(), fopen()


< Copyright Rowebots Research Inc. and Multiprocessor Toolsmiths Inc. 1987-2008 >