PostgreSQL Source Code
git master
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
c
d
g
h
i
k
l
m
p
r
s
t
Functions
Variables
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
c
d
f
h
i
n
o
p
r
s
t
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
qsort.c
Go to the documentation of this file.
1
/*
2
* qsort.c: standard quicksort algorithm
3
*/
4
5
#include "
c.h
"
6
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
"
14
15
/*
16
* qsort comparator wrapper for strcmp.
17
*/
18
int
19
pg_qsort_strcmp
(
const
void
*
a
,
const
void
*
b
)
20
{
21
return
strcmp(*(
const
char
*
const
*)
a
, *(
const
char
*
const
*)
b
);
22
}
c.h
b
int b
Definition:
isn.c:74
a
int a
Definition:
isn.c:73
pg_qsort_strcmp
int pg_qsort_strcmp(const void *a, const void *b)
Definition:
qsort.c:19
sort_template.h
src
port
qsort.c
Generated on Tue Apr 29 2025 18:13:28 for PostgreSQL Source Code by
1.9.4