PostgreSQL Source Code  git master
qsort.c File Reference
#include "c.h"
#include "lib/sort_template.h"
Include dependency graph for qsort.c:

Go to the source code of this file.

Macros

#define ST_SORT   pg_qsort
 
#define ST_ELEMENT_TYPE_VOID
 
#define ST_COMPARE_RUNTIME_POINTER
 
#define ST_SCOPE
 
#define ST_DECLARE
 
#define ST_DEFINE
 

Functions

int pg_qsort_strcmp (const void *a, const void *b)
 

Macro Definition Documentation

◆ ST_COMPARE_RUNTIME_POINTER

#define ST_COMPARE_RUNTIME_POINTER

Definition at line 9 of file qsort.c.

◆ ST_DECLARE

#define ST_DECLARE

Definition at line 11 of file qsort.c.

◆ ST_DEFINE

#define ST_DEFINE

Definition at line 12 of file qsort.c.

◆ ST_ELEMENT_TYPE_VOID

#define ST_ELEMENT_TYPE_VOID

Definition at line 8 of file qsort.c.

◆ ST_SCOPE

#define ST_SCOPE

Definition at line 10 of file qsort.c.

◆ ST_SORT

#define ST_SORT   pg_qsort

Definition at line 7 of file qsort.c.

Function Documentation

◆ pg_qsort_strcmp()

int pg_qsort_strcmp ( const void *  a,
const void *  b 
)

Definition at line 19 of file qsort.c.

Referenced by readstoplist(), and searchstoplist().

20 {
21  return strcmp(*(const char *const *) a, *(const char *const *) b);
22 }