National Instruments 320682C Musical Toy Instrument User Manual


 
Formatting and I/O Library Chapter 2
LabWindows/CVI Standard Libraries 2-16 © National Instruments Corporation
Return Value
n
integer Number of source format
specifiers satisfied.
Return Codes
-1
Format string error
-2
I/O error.
Using This Function
The return value indicates how many source format specifiers were satisfied, -1 if the format
string is in error, or -2 if there was an I/O error. A complete discussion of this function is in the
Using the Formatting and Scanning Functions section later in this chapter.
FmtOut
int n = FmtOut (char *formatString, source1,…,sourcen);
Purpose
Formats the source1 ... sourcen arguments according to descriptions in the formatString
argument. The result of the formatting is written to the Standard I/O window.
Parameters
Input
formatString
String.
source1,…,sourcen Types must match formatString contents.
Return Value
n
integer Number of source format
specifiers satisfied.
Return Codes
-1
Format string error.
-2
I/O error.