sscanf

mud/2.4.5/doc/efun/sscanf · 354 B

From the archive 2.4.5-for-1.1.tgz

Download the archive   « Back to the archive contents

int sscanf(str, fmt, var1, var2 ...)
string str;
string fmt;

Parse a string "str" using the format "fmt". "fmt" can contain strings
separated by "%d" and "%s". Every "%d" and "%s" corresponds to one
of var1, var2...
"%d" will give a number, and "%s" will give a string.

Number of matched "%d" and "%s" is returned.

See also efun/extract efun/explode.

Site Stats

Snippets: 1791
Codebases: 571