Main Page | Modules | Data Structures | File List | Data Fields | Globals

sort.h File Reference

Go to the source code of this file.

Functions

void bubblesort (void *base, ushort num, ushort size, sshort(*cmp_func)(const void *, const void *))
 Simple bubble sort function; use similar to POSIX qsort().


Function Documentation

void bubblesort void *  base,
ushort  num,
ushort  size,
sshort(*  cmp_func)(const void *, const void *)
 

Simple bubble sort function; use similar to POSIX qsort().

Parameters:
base void pointer to start of array to be sorted
num Number of elements in the array
size Size of each element, in bytes
cmp_func Function pointer to element comparison function


Generated on Sat Apr 10 17:08:23 2004 for BeeOS by doxygen 1.3.6-20040222