LPC Library Functions: allocate

NAME

allocate() - allocate an array

SYNOPSIS

mixed *allocate( int size, void | mixed v );

DESCRIPTION

Allocate an array of 'size' elements. The number of elements must be >= 0 and not bigger than a system maximum (usually ~10000). All elements are initialized to 0.

If the optional second argument 'v' is included, allocate() allocates an array of 'size' elements where each element numbered 'i' is set to evaluate(v, i). 'i' is in the range 0..size-1.

SEE ALSO

sizeof(), allocate_mapping()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS