NewtonSetMemorySystem

From Newton Wiki
Jump to: navigation, search

NewtonSetMemorySystem

void NewtonSetMemorySystem (NewtonAllocMemory malloc, NewtonFreeMemory free)

Usage

Tells newton library, to use a custom memory manager.

Parameters

  • NewtonAllocMemory malloc - pointer to memory allocation function
  • NewtonFreeMemory free - pointer to memory deallocation function

Return

  • (Procedure)

Remarks

If you just pass NULL, the standard malloc and free functions will be used, it is not neccesary to call this function at all.

See also