[Overview][Constants][Procedures and functions][Index] Reference for unit 'cmem' (#rtl)

Malloc

Malloc external declaration.

Declaration

Source position: cmem.pp line 40

function Malloc(

  Size: ptruint

):Pointer;

Arguments

Size

  

Requested size for the new memory block.

Function result

A pointer to the newly allocated memory block

Description

Malloc is the external declaration of the C librarys malloc call. It accepts a size parameter, and returns a pointer to a memory block of the requested size or Nil if no more memory could be allocated.

See also

Free

  

Free a previously allocated block

ReAlloc

  

Reallocates a memory block

The latest version of this document can be found at lazarus-ccr.sourceforge.net.