NumFmtdBytes

int NumFmtdBytes (void);

Purpose

Returns the number of bytes formatted or scanned by the previous formatting or scanning call.

Example

double f;
int n;

Scan ("3.1416", "%s>%f", &f);

n = NumFmtdBytes ();

/* n will have the value 6, indicating that */

/* 6 bytes were scanned from the source string. */

Parameters

None.

Return Value

Name Type Description
n integer If the previous call was a formatting call, n represents the number of bytes placed into the target. If the previous call was a scanning call, n represents the number of bytes scanned from the source. n is undefined if there are no preceding formatting or scanning calls.