FDOPEN(3)

NAME
4.6 `fdopen'--turn open file into a stream

SYNOPSIS
     #include <stdio.h>
     FILE *fdopen(int FD, const char *MODE);
     FILE *_fdopen_r(struct _reent *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.

SEE ALSO
fdopen is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.