Gambas Documentation - /lang/alloc

# Alloc

Pointer = Alloc ( Size [ , Count ] )

Allocate a memory block of Size * Count bytes and returns a pointer on it.

By default, Count is one.

Pointer = Alloc ( String )

Allocate a memory block containing the specified string and returns a pointer on it.

The size of the memory block is the string length plus one extra byte for the final `null` character.

### See also

- External Function Management