Chapter 1 ANSI C Library
© National Instruments Corporation 1-9 LabWindows/CVI Standard Libraries
The UNIX version of LabWindows/CVI works with all the signals supported by UNIX in
addition to the ANSI C signals.
ANSI C Library Function Reference
For ANSI C function descriptions, consult a reference work such as C: A Reference Manual
which is listed in the Related Documentation section of About This Manual. Alternatively, you
can use LabWindows/CVI function panel help. The following function description is provided
because it is an extension of the ANSI C function set.

fdopen

FILE *fp = fdopen (int fileHandle, char *mode);
Note: This function is available only in the Windows version of LabWindows/CVI.
Purpose
You can use this function to obtain a pointer to a buffered I/O stream from a file handle returned
by one of the following functions.
open (low-level I/O)
sopen (low-level I/O)
You can use the return value just as if you had obtained it from fopen.
(Although this function is not in the ANSI standard, it is included in this library because it
returns a pointer to a buffered I/O stream.)
Parameters
Input fileHandle integer File handle returned by open or sopen.
mode string Specifies the read/write, binary/text, and append modes.
Return Value
fp FILE * Pointer to a buffered I/O file stream.
Return Codes
NULL (0) Failure. More specific information is in errno.