Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>fdopen</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
fdopen
======

Syntax
------

     #include <stdio.h>
     
     FILE *fdopen(int fd, const char *mode);

Description
-----------

This function opens a stream-type file that uses the given FD file,
which must already be open.  The file is opened with the modes
specified by MODE, which is the same as for `fopen'.  fopen:.   

Return Value
------------

The newly created `FILE *', or `NULL' on error.

Example
-------

     FILE *stdprn = fdopen(4, "w");


See Also: fopen

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson