10.06.2016 Views

eldo_user

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Eldo Control Language<br />

Library of Functions for Tasks<br />

fscan<br />

Task function category: Functions Operating on Files<br />

Returns the number of elements that have been parsed. It has the same behavior as the C fscanf<br />

function.<br />

Usage<br />

fscan(FILE, FORMAT, [,ARG]*)<br />

Arguments<br />

• FILE<br />

File variable.<br />

• FORMAT<br />

FORMAT is a string that contains:<br />

whitespace characters (space, newline and tab characters); they are read and ignored.<br />

non-whitespace characters: sscan will read one character from STR_TO_PARSE and if<br />

it does not match then sscan will return, otherwise the processing of the FORMAT<br />

string continues.<br />

format tags that must follow this specification:<br />

%[*][width]specifier<br />

where:<br />

specifier is:<br />

c for a character<br />

d or i or u for an integer number<br />

e, E, f, g, or G for a double-precision floating-point number<br />

s for a string<br />

x or X for an hexadecimal integer number<br />

% to read the % character<br />

* specifies that the corresponding data must be read but ignored; no argument must<br />

be added for it.<br />

width specifies the maximum number of characters to read.<br />

An argument of the corresponding type must be specified for each format tag present in the<br />

FORMAT argument (except for a format tag preceded with *).<br />

• ARG<br />

Optional. An argument of the corresponding type must be specified for each format tag<br />

present in the FORMAT argument.<br />

908<br />

Eldo® User's Manual, 15.3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!