Sorting/Ints/quickSort.c File Reference

Use native qsort() function to sort integer array. This implementation simply invokes the qsort() function available from the Unix operating system. Note that on some system variants, the qsort routine is actually implemented using Heap Sort. More...

#include <stdlib.h>

Functions

int cmp (const void *n1, const void *n2)
 Comparator function for comparing integer values.
void sort (int *ar, int n)
 sort n numbers in array.


Detailed Description

Use native qsort() function to sort integer array. This implementation simply invokes the qsort() function available from the Unix operating system. Note that on some system variants, the qsort routine is actually implemented using Heap Sort.

Author:
George Heineman
Date:
6/15/08

Function Documentation

int cmp ( const void *  n1,
const void *  n2 
)

Comparator function for comparing integer values.

void sort ( int *  ar,
int  n 
)

sort n numbers in array.

Algorithm Development Kit 1.0