tfFreeDynamicMemory

Jump to: navigation, search

Table of Contents >> Programmer's Reference


#include <trsocket.h>


int tfFreeDynamicMemory (void);


Function Description

This function frees all unused dynamic memory Treck has allocated and is holding in its internal memory recycle lists. This memory is returned to the system.


Returns

  • TM_ENOERROR
    Success
  • TM_ENOENT
    The user cannot free the dynamic memory either because the user had disabled the dynamic memory by defining the following macro: TM_DISABLE_DYNAMIC_MEMORY in <trsystem.h>, or because the user uses the Treck simple heap.


Table of Contents >> Programmer's Reference