P99
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
a
c
d
e
f
i
l
m
n
r
s
t
w
Functions
c
e
f
i
n
r
Variables
Typedefs
Related Functions
Files
File List
Globals
All
0
1
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
i
j
l
m
n
p
r
s
t
u
v
w
Variables
Typedefs
_
b
c
d
e
f
i
l
m
o
p
r
s
t
u
v
Enumerations
Enumerator
Macros
0
1
2
3
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Examples
•
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
p99
p99_swap.h
P99_ASORT
P99_QSORT
P99_SWAP
p99_swap1
p99_swap2
◆
P99_QSORT
#define P99_QSORT
(
TAB,
NB,
...
)
Value:
P99_IF_LT
(
P99_NARG
(__VA_ARGS__), 2) \
(qsort((TAB), (NB),
sizeof
(TAB)[0], __VA_ARGS__)) \
(
qsort_s
((TAB), (NB),
sizeof
(TAB)[0], __VA_ARGS__))
Remarks
argument 0 maybe evaluated several times for its type but only once for its value
Definition at line
176
of file
p99_swap.h
.
P99_NARG
#define P99_NARG(...)
Return the length of the variable length argument list, where an empty argument list is considered to...
Definition:
p99_args.h:117
P99_IF_LT
#define P99_IF_LT(A, B)
Test two decimal numbers A and B for whether A is strictly less than B.
Definition:
p99_if.h:120
qsort_s
#define qsort_s(B, N, S, CMP, CTX)
A generic sorting routine.
Definition:
p99_qsort.h:496
Generated by
1.8.17