cpp/io/c/fscanf

Reads data from a variety of sources, interprets it according to and stores the results into given locations.

@1@ Reads the data from stdin @2@ Reads the data from file stream @3@ Reads the data from null-terminated character string

Return value
Number of receiving arguments successfully assigned (which may be zero in case a matching failure occurred before the first receiving argument was assigned), or eof if input failure occurs before the first receiving argument was assigned.

Complexity
Not guaranteed. Notably, some implementations of are $O(N)$, where. For performant string parsing, see.