Desktop/xinu_mips-1.0.2.tar/xinu_mips-1.0.2/lib/libxc/qsort.c File Reference

Go to the source code of this file.


static void qs1 (char *, char *)
static void qsexc (char *, char *)
static void qstexc (char *, char *, char *)
void qsort (char *a, unsigned n, int es, int(*fc)())


static int(* qscmp )()
static int qses

Detailed Description

qsort, qs1, qsexc, qstexc

qsort.c 221 2007-07-11 18:45:46Z mschul

Definition in file qsort.c.

Function Documentation

static void qs1 ( char *  a,
char *  l 
) [static]

Definition at line 30 of file qsort.c.

References qscmp, qses, qsexc(), and qstexc().

Referenced by qsort().

static void qsexc ( char *  i,
char *  j 
) [static]

Definition at line 110 of file qsort.c.

References qses.

Referenced by qs1().

void qsort ( char *  a,
unsigned  n,
int  es,
int(*)()  fc 

Performs a quick sort

*a array to sort
n length of the array
es pivot
(*fc)() comparison function

Definition at line 22 of file qsort.c.

References qs1(), qscmp, and qses.

static void qstexc ( char *  i,
char *  j,
char *  k 
) [static]

Definition at line 126 of file qsort.c.

References qses.

Referenced by qs1().

Variable Documentation

int(* qscmp)() [static]

Referenced by qs1(), and qsort().

int qses [static]

Definition at line 10 of file qsort.c.

Referenced by qs1(), qsexc(), qsort(), and qstexc().

Generated on Thu Oct 9 22:34:50 2008 for xinu by  doxygen 1.5.5