Contents | < Browse | Browse >

    Alloc()

  SYNOPSIS
    mem:=Alloc(size)

  FUNCTION
    Function allocates POOL memory if it is present. Pool
    allocations are quite fast and prevent memory fragmentation.
    If no pool is created, function will call New() instead.

  INPUTS
    size - size of memory to alloc

  RESULT
    mem - pointer to allocated memory or 0 if allocation failed

  SEE ALSO
     Free()