Functions

nsQuickSort.h File Reference

#include "prtypes.h"
#include "nscore.h"
Include dependency graph for nsQuickSort.h:
This graph shows which files directly or indirectly include this file:

Functions

void NS_QuickSort (void *, unsigned int, unsigned int, int(*)(const void *, const void *, void *), void *)
 Parameters: 1.

Function Documentation

void NS_QuickSort ( void *  ,
unsigned  int,
unsigned  int,
int(*)(const void *, const void *, void *)  ,
void *   
)

Parameters: 1.

the array to sort 2. the number of elements in the array 3. the size of each array element 4. comparison function taking two elements and parameter #5 and returning an integer: + less than zero if the first element should be before the second + 0 if the order of the elements does not matter + greater than zero if the second element should be before the first 5. extra data to pass to comparison function