OAR

RTEMS GNU Tools On-Line Library


fdopen

PREV UP NEXT Bookshelf

3.11: 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.



PREV UP NEXT Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.