home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / posix / stdio / fdopen.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  551 b   |  27 lines

  1. @node fdopen, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <stdio.h>
  6.  
  7. FILE *fdopen(int fd, const char *mode);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function opens a stream-type file that uses the given @var{fd}
  13. file, which must already be open.  The file is opened with the modes
  14. specified by @var{mode}, which is the same as for @code{fopen}. 
  15. @xref{fopen}.
  16.  
  17. @subheading Return Value
  18.  
  19. The newly created @code{FILE *}, or @code{NULL} on error.
  20.  
  21. @subheading Example
  22.  
  23. @example
  24. FILE *stdprn = fdopen(4, "w");
  25. @end example
  26.  
  27.