Navigation

Operators and Keywords

Function List:

C++ API

: [val, count, errmsg, pos] = sscanf (string, template, size)
: [v1, v2, …, count, errmsg] = sscanf (string, template, "C")

This is like fscanf, except that the characters are taken from the string string instead of from a stream.

Reaching the end of the string is treated as an end-of-file condition. In addition to the values returned by fscanf, the index of the next character to be read is returned in pos.

See also: fscanf, scanf, sprintf.

Package: octave