contents   index   previous   next



Clib.sscanf()

syntax:

Clib.sscanf(str, formatString[, variables ...])

where:

str - string holding the data to read into variables according to formatString.

 

formatString - specifies how to read and store data in variables.

 

variables - list of variables to hold data input according to formatString.

 

return:

number - input items assigned. May be lower than the number of items requested if there is a matching failure.

 

description:

This flexible method reads data from a string and stores it in variables passed as parameters following formatString. The parameter formatString specifies how data is read and stored in variables. See Clib.scanf() for details about formatString.

 

Clib.scanf() reads data from the standard input stream, whereas this method, Clib.sscanf() reads data from a string.

 

see:

Clib.scanf(), Clib.fscanf(), Clib.vscanf()

 

 


Clib.sprintf()