Skip to main content

strwidth

Discworld driver help

strwidth

Name

strwidth() - Returns the number of characters in a string.

Synopsis

int strwidth( string str );

Description

strwidth() returns the number of characters in the string `str'. Since the UTF-8 encoding (which all strings on the MUD uses) use up multiple bytes to form certain characters, this is different from strlen(), which returns the number of bytes in a given string.

See also

strlen()