Chapter 2 Formatting and I/O Library
© National Instruments Corporation 2-15 LabWindows/CVI Standard Libraries
Parameters
Input formatString String.
source1,…,sourcen Types must match formatString contents.
Output target Type must match formatString contents.
Return Value
ninteger Number of source format
specifiers satisfied.
Return Code
-1 Format string error.
Using This Function
This function places the result of the formatting into the target argument, which you must pass by
reference. The return value indicates how many source format specifiers were satisfied, or
-1 if the format string is in error. A complete discussion of this function is in the Using the
Formatting and Scanning Functions section later in this chapter.
FmtFile
int n = FmtFile (int fileHandle, char *formatString, source1,…,sourcen);
Purpose
Formats the source1 ... sourcen arguments according to descriptions in the formatString
argument. The result of the formatting is written into the file corresponding to the fileHandle
argument, which was obtained by a call to the LabWindows/CVI function OpenFile.
Parameters
Input fileHandle integer File handle.
formatString string
source1,…,sourcen types must match formatString
contents