Unit 'icon' Package
[Overview][Constants][Types][Procedures and functions][Variables][Index] [#amunits]

AddFreeList

Add memory to a free list.

Declaration

Source position: icon.pas line 351

function AddFreeList(

  freelist: pFreeList;

  const mem: POINTER;

  size: LongWord

):LongBool;

Arguments

freelist

  

A Pointer to freelist struct previously allocated by the programmer.

mem

  

Memory to add to the freelist.

size

  

Size of memory chunk to add to the frelist.

Function result

TRue if the call succeeded else False

Description

This routine adds the specified memory to the free list. The free list will be extended (if required). If there is not enough memory to complete the call, NULL is returned.

Note that AddFreeList() does not allocate the requested memory. It only records the memory in the free list.

See also

AllocEntry

  

Allocate many regions of memory

FreeEntry

  

Allocate many regions of memory

FreeFreeList

  

Free all memory in a free list.


Documentation generated on: 2021-07-30