Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: Français - Português do Brasil - Japanese -
Scilab help >> Files : Input/Output functions > sscanf

sscanf

Converts formatted input given by a string

Calling Sequence

[v_1,...v_n]=sscanf (string,format)

Arguments

format

Specifies the format conversion.

string

Specifies input to be read.

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 functions interpret character string according to a format, and returns the converted results.

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
  • msscanf
  • mfscanf — reads input from the standard input (interface to the C scanf function)
  • scanf_conversion — scanf, sscanf, fscanf conversion specifications

Comments


Add a comment:
Please login to comment this page.

<< scanf_conversion Files : Input/Output functions Input/Output functions >>

Consortium Scilab (DIGITEO)
Scilab Enterprises

Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Oct 05 12:09:59 CEST 2011