Admin Production ni-theme
Current Publication

Input/Output <stdio.h>

LabWindows/CVI

Input/Output <stdio.h> Class Help

This class contains a broad assortment of functions used for input and output operations. The functions contained in this class are defined in the stdio.h header file.

Many of the functions in this class operate on streams. Streams are created and associated with files by the fopen function. In addition, when execution begins, there are three open streams: stdin, stdout, and stderr. You can use these streams to read from and write to the Standard I/O Window.

Error Handling

Most of the functions in this class set the global variable errno to a nonzero value if an error occurs. To use the value of errno, include the header file errno.h, initialize errno to zero before the call to the library function, and examine its value after the function call.

Note Note  Although the ANSI standard specifically states that the type of the global variable errno must be an integer, LabWindows/CVI defines errno with an enumeration type so that function panels and the Variables and Call Stack window show error names instead of integer values. If you require that errno be declared as an integer, define the preprocessor symbol DISABLE_ERRNO_ENUM before including errno.h.

You can view specific error numbers that each library function sets in the help for the errno parameter on the function panels.

Library: ANSI C Library