C Everything
This is a C repository containing a curated set of generic data structures and algorithm.
|
Contains definitions of routines for managing memory allocs. More...
#include "common.h"
Go to the source code of this file.
Functions | |
void | mem_init () |
Initailize memory module More... | |
void | mem_finit (void) |
Close memory module by checking and destroying if any tagged memory More... | |
t_gen | tag_alloc (size_t nmemb, size_t size, char *file, int line) |
allocate memory and store in mem list (tagging) More... | |
void | untag_alloc (void *mem_addr, char *file, int line) |
deallocate memory and remove from mem list (untagging) More... | |
void | mem_alloc_report (void) |
print report of all the assigned memory More... | |
Contains definitions of routines for managing memory allocs.
Definition in file memory_manager.c.
void mem_alloc_report | ( | void | ) |
print report of all the assigned memory
Definition at line 110 of file memory_manager.c.
void mem_finit | ( | void | ) |
Close memory module by checking and destroying if any tagged memory
Definition at line 24 of file memory_manager.c.
void mem_init | ( | void | ) |
t_gen tag_alloc | ( | size_t | nmemb, |
size_t | size, | ||
char * | file, | ||
int | line | ||
) |
allocate memory and store in mem list (tagging)
Definition at line 44 of file memory_manager.c.
void untag_alloc | ( | void * | mem_addr, |
char * | file, | ||
int | line | ||
) |
deallocate memory and remove from mem list (untagging)
Definition at line 78 of file memory_manager.c.