Associate a low level I/O file handle with a stream.
FILE * _fdopen (int handle, char * mode);
FILE * fdopen (int handle, char * mode);
Required Header |
<stdio.h> |
Return Value
Each of these functions returns a pointer to the new stream. A null pointer value indicates an error.
Parameters
handle
A handle to the open low level I/O file
mode
Type of access permitted
Remarks
The fdopen function creates a new stream for the low level I/O file specified by handle. This allows low level I/O handles to use the formatting functions of the standard I/O library.
mode is not used by this JCC library function, except to set the internal stream flags. The mode of the new stream remains the same as the original mode of the low level file handle. See fopen for details on mode.
See Also _dup, _dup2, _fcloseall, fclose, fopen, freopen, _open