Addresses/up.c File Reference

Task to free elements from address table in order.Allocated memory stored in the 'addr' table are free'd in reverse order. More...

#include <stdlib.h>

Functions

void fillList ()
 Required code to populate addr table with appropriate number of allocated memory pointers.
void prepareInput ()
 Preprocess by populating the 'addr' table with all allocated memory.
void execute ()
 Execute by invoking malloc(numElements) a total of numT times.

Variables

int numT
 Number of instances that were allocated.
void * addr []
 The table of allocated memory.


Detailed Description

Task to free elements from address table in order.Allocated memory stored in the 'addr' table are free'd in reverse order.

Author:
George Heineman
Date:
6/15/08

Function Documentation

void execute (  ) 

Execute by invoking malloc(numElements) a total of numT times.

void fillList (  ) 

Required code to populate addr table with appropriate number of allocated memory pointers.

void prepareInput (  ) 

Preprocess by populating the 'addr' table with all allocated memory.


Variable Documentation

void* addr[]

The table of allocated memory.

int numT

Number of instances that were allocated.

Algorithm Development Kit 1.0