Skip to main content

sizeof

Discworld expression help

sizeof

Name

sizeof - find the size of the array

Syntax

int sizeof(array)

Description

This method will find the size of the passed in array. It can be used for checking things like the sizeof the objects array or the size of things inside a container.

Examples

sizeof(objects) = 1
sizeof(contents(objects[0]))

See also

contents, objects