| iMatix home page | << | < | > | >> |
SFL Version 2.11 |
#include "sflmem.h" void mem_freeall (void)
Frees all allocated memory. This function is rather brutal and can do strange things to an application. It can be useful when you are trying to recover control in a crashed application, and need to free all allocated memory before restarting it.
{ MEMTRN *trn; mem_free_list ((MEMHDR *) &mem_list.memhdr); while (!list_empty (&tr_list)) { trn = tr_list.next; mem_free_list ((MEMHDR *) &trn-> memhdr); mem_del_trans (trn); } }
| << | < | > | >> | Copyright © 1996-2000 iMatix Corporation |