NAME
	sscanf - Parse a string with a given format

SYNOPSIS
	int sscanf(string str, string fmt, mixed var1, mixed var2 ...)

DESCRIPTION
	Parse string `str' with the format `fmt' and return matched
	pieces in the given variables. %s and %d in the format string
        refers to a string and a number respectively. The variables
        must be defined earlier as `strings' for those connected to a
	%s and `int' for those connected to a %d.

	You can now also use %*s and %*d in the format string. These
	correspond to %s and %d respectively but do not need a matching
	variable for the result, thus eliminating unnecessary temporary
	variables if you're only interested in the pattern and not
	the actual contents of the string.

EXAMPLES
	sscanf("good morning", "%s %s", var1, var2) == 2
		var1 is set to "good" and var2 to "morning"

	sscanf("10 hi", "%d ", var) == 1
		var is set to 10

	sscanf("from bag", "%s %d", var1, var) == 1
		var1 is set to from and var is unchanged

	sscanf(file_name(this_object()), "%*s#%*d") == 2
		this_object() is a clone

Help topics available:
_m_delete allocate atoi capitalize clear_bit
crypt ctime explode filter_array filter_mapping
implode intp itoa lower_case m_delete
m_indices m_sizeof m_values map_array map_mapping
mappingp member_array mkmapping objectp pointerp
replace set_bit sizeof sort_array sscanf
stringp strlen test_bit unique_array upper_case

[START|BACK ]




[ NannyMuds main page | FAQ | Contact us ]

You are guest number 126 since November 2019.
This file was last modified: June 2000.