libc.info: fdopen

Go forward to fputc
Go backward to fopen
Go up to Stdio
Go to the top op libc

`fdopen'--turn open file into a stream

*Synopsis*
     #include <stdio.h>
     FILE *fdopen(int FD, const char *MODE);
     FILE *_fdopen_r(void *REENT,
         int FD, const char *MODE);
   *Description*
`fdopen' produces a file descriptor of type `FILE *', from a descriptor
for an already-open file (returned, for example, by the system
subroutine `open' rather than by `fopen').  The MODE argument has the
same meanings as in `fopen'.
*Returns*
File pointer or `NULL', as for `fopen'.
*Portability*
`fdopen' is ANSI.