fileno.c 140 B

123456789101112
  1. /*
  2. * fileno .c - map a stream to a file descriptor
  3. */
  4. /* $Id$ */
  5. #include <stdio.h>
  6. int
  7. (fileno)(FILE *stream)
  8. {
  9. return stream->_fd;
  10. }