fileno()

map stream pointer to file descriptor 

Function


SYNOPSIS

#include <stdio.h>

int fileno(FILE *stream);


DESCRIPTION

The fileno() function returns the integer file descriptor associated with the stream.


PARAMETERS

stream 

Points to the stream to be mapped to a file descriptor.


RETURN VALUES

fileno() always returns the file descriptor associated with the stream; no values are reserved to indicate an error.


CONFORMANCE

POSIX.1 (1996).


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
fdopen(), fopen()


PTC MKS Toolkit 10.4 Documentation Build 39.