Sorting/buildPointerBasedInput.h File Reference

Define interface for sorting algorithms over pointer-based information. Build up a pointer-based array of Strings to use as a basis for testing the various sorting algorithms. More...

Go to the source code of this file.

Defines

#define ELEMENT_SIZE   26
 Fixed element size as macro.

Functions

void sortPointers (char **strings, int numElements, int(*stringComp)(char *a1, char *a2))
 Interface to sort the pointer-based information found in strings.


Detailed Description

Define interface for sorting algorithms over pointer-based information. Build up a pointer-based array of Strings to use as a basis for testing the various sorting algorithms.

Author:
George Heineman
Date:
6/15/08

Define Documentation

#define ELEMENT_SIZE   26

Fixed element size as macro.


Function Documentation

void sortPointers ( char **  strings,
int  numElements,
int(*)(char *a1, char *a2)  stringComp 
)

Interface to sort the pointer-based information found in strings.

Parameters:
strings Array of pointer-based strings in memory.
numElements Number of strings in this array.
stringComp function to compare two string values.

Algorithm Development Kit 1.0