L3DT users' wiki
Large 3D terrain generator

strlen

Description

Get the length of a string in characters.

Function prototype

int strlen <string:str>

Arguments

Name Type Comment
str string A string, the length of which is to be determined.

Return value

An integer containing the length of str, in characters.

Example

// create a new integer
int i

// set integer value to be length of a string using strlen
set i <zs:strlen "This text is 31 characters long">

// echo result to event log
echo i

… the output of which is written to the event log by echo as:

31

Comments

None.

See also

 
plugins/general/zeoscript/reference/functions/strlen.txt · Last modified: 2017/08/31 05:43 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki