minix/lib/libc/stdio/fileno.c

13 lines
144 B
C

/*
* fileno .c - map a stream to a file descriptor
*/
/* $Header$ */
#include <stdio.h>
int
(fileno)(FILE *stream)
{
return stream->_fd;
}