NAME

parse_command() - parse commands given in a string

SYNOPSIS

int parse_command(string str, object source, string pattern, var1, var2 ...);

DESCRIPTION

Parses commands given in `str' against the pattern in `pattern' and returns 1 if it matches. `source' is either an object or an array of objects. This is essentially a 'hotted' sscanf and it has a similar syntax, although parse_command works on word basis where sscanf works on character basis.