- Scilab help
- Files : Input/Output functions
- Directory
- Paths - Filenames
- copyfile
- deletefile
- dispfiles
- fileinfo
- findfiles
- fprintf
- fprintfMat
- fscanf
- fscanfMat
- getmd5
- %io
- isfile
- listfiles
- listvarinfile
- maxfiles
- mclearerr
- mclose
- mdelete
- meof
- merror
- mfprintf
- mfscanf
- mget
- mgetl
- mgetstr
- mopen
- movefile
- mput
- mputl
- mputstr
- mseek
- mtell
- newest
- save_format
- scanf
- scanf_conversion
- sscanf
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.
sscanf
converts formatted input given by a string. This function is obsolete.
Calling Sequence
[v_1, ..., v_n] = sscanf(string, format)
Arguments
- format
specifies the format conversion.
- string
specifies input to be read.
- v_1, ..., v_n
converted results.
Description
This function is obsolete, use preferably the
msscanf function which is more efficient and
is more compatible with the C sscanf
procedure. |
The sscanf
function interprets character string
according to a format
, and returns the converted
results v_1
, ..., v_n
.
The format
parameter contains conversion
specifications used to interpret the input.
The format
parameter can contain
white-space characters (blanks, tabs, newline, or formfeed)
that, except in the following two cases, read the input up to the
next nonwhite-space character. Unless there is a match in the control
string, trailing white-space (including a newline character) is not
read.
Any character except
%
(percent sign), which must match the next character of the input stream.A conversion specification that directs the conversion of the next input field. See scanf_conversion for details.
See Also
- mprintf — converts, formats, and writes data to the main scilab window
- mfscanf — reads input from the stream pointer stream (interface to the C fscanf function)
- scanf_conversion — mscanf, msscanf, mfscanf conversion specifications
Report an issue | ||
<< scanf_conversion | Files : Input/Output functions | Input/Output functions >> |