Go to the source code of this file.
Functions | |
void | sfmemcap_init (MEMCAP *mc, unsigned nbytes) |
MEMCAP * | sfmemcap_new (unsigned nbytes) |
void | sfmemcap_delete (MEMCAP *mc) |
void * | sfmemcap_alloc (MEMCAP *mc, unsigned nbytes) |
void | sfmemcap_showmem (MEMCAP *mc) |
void | sfmemcap_free (MEMCAP *mc, void *memory) |
char * | sfmemcap_strdup (MEMCAP *mc, const char *str) |
void * | sfmemcap_dupmem (MEMCAP *mc, void *src, int n) |
|
Definition at line 52 of file sfmemcap.c. References MEMCAP::memcap, MEMCAP::memused, MEMCAP::nblocks, and NULL. Referenced by s_malloc(), sfmemcap_dupmem(), and sfmemcap_strdup(). |
|
Definition at line 44 of file sfmemcap.c. |
|
Definition at line 127 of file sfmemcap.c. References memcpy, NULL, and sfmemcap_alloc(). |
|
Definition at line 88 of file sfmemcap.c. References MEMCAP::memused, and MEMCAP::nblocks. Referenced by s_free(). |
|
Definition at line 20 of file sfmemcap.c. References MEMCAP::memcap, MEMCAP::memused, and MEMCAP::nblocks. Referenced by sfmemcap_new(), and sfxhash_new(). |
|
Definition at line 30 of file sfmemcap.c. References sfmemcap_init(). |
|
Definition at line 103 of file sfmemcap.c. References MEMCAP::memcap, MEMCAP::memused, and MEMCAP::nblocks. |
|
Definition at line 113 of file sfmemcap.c. References NULL, and sfmemcap_alloc(). |