P99
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