maug
Quick and dirty C mini-augmentation library.
|
Files | |
file | mmem.h |
Macros | |
#define | maug_malloc(nmemb, sz) |
#define | maug_mrealloc(handle, nmemb, sz) |
#define | maug_mzero(ptr, sz) |
Zero the block of memory pointed to by ptr. | |
#define | maug_mcpy(ptr_dest, ptr_src, sz) |
#define | maug_mfree(handle) |
#define | maug_mlock(handle, ptr) |
#define | maug_munlock(handle, ptr) |
#define | maug_strncpy(dest, src, len) |
#define | maug_strlen(str) |
#define | maug_mrealloc_test(new_handle, handle, nmemb, sz) |
Typedefs | |
typedef void * | MAUG_MHANDLE |
Functions | |
char * | maug_strchr (const char *str, char c) |
char * | maug_strrchr (const char *str, char c) |
#define maug_malloc | ( | nmemb, | |
sz ) |
#define maug_mcpy | ( | ptr_dest, | |
ptr_src, | |||
sz ) |
#define maug_mfree | ( | handle | ) |
#define maug_mlock | ( | handle, | |
ptr ) |
#define maug_mrealloc | ( | handle, | |
nmemb, | |||
sz ) |
\warn This does not test that reallocation was successful! Use maug_mrealloc_test() for that.
#define maug_mrealloc_test | ( | new_handle, | |
handle, | |||
nmemb, | |||
sz ) |
#define maug_munlock | ( | handle, | |
ptr ) |
#define maug_mzero | ( | ptr, | |
sz ) |
Zero the block of memory pointed to by ptr.
\warn This should be used on pointers, not handles!
#define maug_strlen | ( | str | ) |
#define maug_strncpy | ( | dest, | |
src, | |||
len ) |