Main Page | Modules | Class List | Directories | File List | Class Members | File Members | Related Pages

sfmemcap.h File Reference

Go to the source code of this file.

Functions

void sfmemcap_init (MEMCAP *mc, unsigned nbytes)
MEMCAPsfmemcap_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)


Function Documentation

void* sfmemcap_alloc MEMCAP mc,
unsigned  nbytes
 

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().

void sfmemcap_delete MEMCAP mc  ) 
 

Definition at line 44 of file sfmemcap.c.

void* sfmemcap_dupmem MEMCAP mc,
void *  src,
int  n
 

Definition at line 127 of file sfmemcap.c.

References memcpy, NULL, and sfmemcap_alloc().

void sfmemcap_free MEMCAP mc,
void *  memory
 

Definition at line 88 of file sfmemcap.c.

References MEMCAP::memused, and MEMCAP::nblocks.

Referenced by s_free().

void sfmemcap_init MEMCAP mc,
unsigned  nbytes
 

Definition at line 20 of file sfmemcap.c.

References MEMCAP::memcap, MEMCAP::memused, and MEMCAP::nblocks.

Referenced by sfmemcap_new(), and sfxhash_new().

MEMCAP* sfmemcap_new unsigned  nbytes  ) 
 

Definition at line 30 of file sfmemcap.c.

References sfmemcap_init().

void sfmemcap_showmem MEMCAP mc  ) 
 

Definition at line 103 of file sfmemcap.c.

References MEMCAP::memcap, MEMCAP::memused, and MEMCAP::nblocks.

char* sfmemcap_strdup MEMCAP mc,
const char *  str
 

Definition at line 113 of file sfmemcap.c.

References NULL, and sfmemcap_alloc().


Generated on Sun May 14 14:51:26 2006 by  doxygen 1.4.2