Consistently use "superuser" instead of "super user"
[pgsql.git] / src / port / qsort.c
blob7879e6cd563c3f37a6a7f2140dcb06750e5f4871
1 /*
2 * qsort.c: standard quicksort algorithm
3 */
5 #include "c.h"
7 #define ST_SORT pg_qsort
8 #define ST_ELEMENT_TYPE_VOID
9 #define ST_COMPARE_RUNTIME_POINTER
10 #define ST_SCOPE
11 #define ST_DECLARE
12 #define ST_DEFINE
13 #include "lib/sort_template.h"
16 * qsort comparator wrapper for strcmp.
18 int
19 pg_qsort_strcmp(const void *a, const void *b)
21 return strcmp(*(const char *const *) a, *(const char *const *) b);