13 lines
140 B
C
13 lines
140 B
C
/*
|
|
* fileno .c - map a stream to a file descriptor
|
|
*/
|
|
/* $Id$ */
|
|
|
|
#include <stdio.h>
|
|
|
|
int
|
|
(fileno)(FILE *stream)
|
|
{
|
|
return stream->_fd;
|
|
}
|