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() returns the integer value of the file descriptor associated with stream. Otherwise, the value of -1 is returned and errno set to indicate the error.

ERRORS

[EBADF]
The stream argument is not a valid stream.

SEE ALSO

open(), fopen()


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