www.delorie.com/djgpp/doc/libc-2.01/libc_259.html   search  
Go to the first, previous, next, last section, table of contents.


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. See section fopen.

Return Value

The newly created FILE *, or NULL on error.

Example

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


Go to the first, previous, next, last section, table of contents.

  prev next   webmaster     delorie software   privacy  
  Copyright © 1997     Updated Apr 1997