SYNOPSIS int sscanf(string str, string fmt, mixed var1, mixed var2, ...) DESCRIPTION Parse a string str using the format fmt. fmt can contain strings seperated by %d and %s. Every %d and %s corresponds to one of var1, var2, ... . %d stands for a number and %s for a string. The number of matched arguments will be returned. The function sscanf is special, in that arguments are passed by reference. EXAMPLE string who, what; if (sscanf("throw frisbee to rover", "throw %s to %s", what, who) != 2) write("Usage: throw <what> to <who>\n"); else write("You throw a "+what+" to "+who+" to get his attention.\n"); SEE ALSO extract(E), explode(E), regexp(E)