sscanf
lpc4/lib/doc/efun/sscanf · 773 B
From the archive lpc4.05.14.tar.gz
Download the archive « Back to the archive contents
NAME sscanf - scan a string using a format string SYNTAX int sscanf(string str, string fmt, mixed var1, mixed var2 ...); DESCRIPTION Parse a string str using the format fmt. fmt can contain strings separated by "%d,%s,%c and %f. Every % corresponds to one of var1, var2... %d gives an integer %f gives a float %c matches one char but returns an integer %s gives a string %[set] matches a string containing a given set of characters. (thos given inside the brackets) %[^set] means any character ecept those inside brackets. %[0-9H] means any number or 'H'. If a * is put between the percent and the operator, the operator will not only match it's argument, not assign any variables. Number of matched arguments is returned. SEE ALSO extract, explode