Formatting and I/O Library Chapter 2
LabWindows/CVI Standard Libraries 2-20 © National Instruments Corporation
NumFmtdBytesint n = NumFmtdBytes (void);
Purpose
Returns the number of bytes formatted or scanned by the previous formatting or scanning call.
Parameters
None
Return Value
ninteger Number of bytes formatted or
scanned.
Using This Function
If the previous call was a formatting call, NumFmtdBytes returns the number of bytes placed into
the target. If the previous call was a scanning call, NumFmtdBytes returns the number of bytes
scanned from the source. The return value is undefined if there have been no preceding formatting
or scanning calls.
Certain operations using the FmtFile and ScanFile routines can result in more than 64 KB
being formatted or scanned. Because NumFmtdBytes returns an integer, its value will not be
accurate in these cases. The value returned rolls over when formatting or scanning more than
65,535 bytes.
Example
double f; int n;
Scan ("3.1416", "%s>%f", &f);
n = NumFmtdBytes ();
/* n will have the value 6, indicating that six bytes */
/* were scanned from the source string. */
OpenFileint handle = OpenFile (char *fileName, int read/writeMode, int action, int fileType);
Purpose
Opens a file for input and/or output.