Return to qsort.c CVS log | Up to [cvs.NetBSD.org] / src / lib / libc / stdlib |
Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. |
version 1.11, 1999/09/16 11:45:35 | version 1.12, 1999/09/20 04:39:40 | ||
---|---|---|---|
|
|
||
_DIAGASSERT(a != NULL); | _DIAGASSERT(a != NULL); | ||
_DIAGASSERT(cmp != NULL); | _DIAGASSERT(cmp != NULL); | ||
#ifdef _DIAGNOSTIC | |||
if (n == 0) | |||
return; | |||
if (a == NULL || cmp == NULL) | |||
return; | |||
#endif | |||
loop: SWAPINIT(a, es); | loop: SWAPINIT(a, es); | ||
swap_cnt = 0; | swap_cnt = 0; |