Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

MyMem.c File Reference


Detailed Description

Memory management & reporting functions (implementation).

#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <errno.h>
#include <assert.h>
#include <string.h>
#include <time.h>
#include "CUnit.h"
#include "MyMem.h"
#include "test_cunit.h"

Functions

void test_cunit_deactivate_malloc (void)
 Disable memory allocation for testing purposes.
void test_cunit_activate_malloc (void)
 Enable memory allocation for testing purposes.
unsigned int test_cunit_get_n_memevents (void *pLocation)
 Retrieve number of memory events for a given pointer.
unsigned int test_cunit_get_n_allocations (void *pLocation)
 Retrieve number of allocations for a given pointer.
unsigned int test_cunit_get_n_deallocations (void *pLocation)
 Retrieve number of deallocations for a given pointer.
void test_CU_calloc (void)
void test_CU_malloc (void)
void test_CU_free (void)
void test_CU_realloc (void)
void test_cunit_MyMem (void)
 The main internal testing function for MyMem.c.


Function Documentation

void test_CU_calloc void   ) 
 

void test_CU_free void   ) 
 

void test_CU_malloc void   ) 
 

void test_CU_realloc void   ) 
 


Generated on Thu Apr 28 12:36:09 2005 for CUnit by  doxygen 1.3.9.1