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.
|
Functions |
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)()) |
Variables |
static int(* | qscmp )() |
static int | qses |
Detailed Description
qsort, qs1, qsexc, qstexc
- Id
- 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] |
static void qsexc |
( |
char * |
i, |
|
|
char * |
j | |
|
) |
| | [static] |
void qsort |
( |
char * |
a, |
|
|
unsigned |
n, |
|
|
int |
es, |
|
|
int(*)() |
fc | |
|
) |
| | |
Performs a quick sort
- Parameters:
-
| *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] |
Variable Documentation