Go to the source code of this file.
|
static void | qs1 (char *, char *) |
|
static void | qsexc (char *, char *) |
|
void | qsort (char *a, unsigned n, int es, int(*fc)(char *, char *)) |
|
static void | qstexc (char *, char *, char *) |
|
|
static int(* | qscmp )(char *, char *) |
|
static int | qses |
|
◆ qs1()
static void qs1 |
( |
char * |
a, |
|
|
char * |
l |
|
) |
| |
|
static |
Definition at line 29 of file qsort.c.
References qscmp, qses, qsexc(), qstexc(), and start.
Referenced by qsort().
43 if ((n = l - a) <= es)
47 n = es * (n / (2 * es));
55 if ((c = (*
qscmp) (i, lp)) == 0)
70 if ((c = (*
qscmp) (hp, j)) == 0)
static void qs1(char *, char *)
static void qsexc(char *, char *)
static int(* qscmp)(char *, char *)
static void qstexc(char *, char *, char *)
◆ qsexc()
static void qsexc |
( |
char * |
i, |
|
|
char * |
j |
|
) |
| |
|
static |
Definition at line 116 of file qsort.c.
References qses.
Referenced by qs1().
121 register char *ri, *rj, c;
◆ qsort()
void qsort |
( |
char * |
a, |
|
|
unsigned |
n, |
|
|
int |
es, |
|
|
int(*)(char *, char *) |
fc |
|
) |
| |
Definition at line 13 of file qsort.c.
References qs1(), qscmp, and qses.
static void qs1(char *, char *)
static int(* qscmp)(char *, char *)
◆ qstexc()
static void qstexc |
( |
char * |
i, |
|
|
char * |
j, |
|
|
char * |
k |
|
) |
| |
|
static |
Definition at line 140 of file qsort.c.
References qses.
Referenced by qs1().
146 register char *ri, *rj, *rk;
◆ qscmp
int(* qscmp) (char *, char *) |
|
static |
◆ qses