mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-23 11:18:54 +00:00
c8aeb6b447
Reviewed by: marcel
20 lines
430 B
C
20 lines
430 B
C
/*
|
|
* This file is in the public domain. Originally written by Garrett
|
|
* A. Wollman.
|
|
*
|
|
* $FreeBSD$
|
|
*/
|
|
#include "block_abi.h"
|
|
#define I_AM_QSORT_R
|
|
#include "qsort.c"
|
|
|
|
typedef DECLARE_BLOCK(int, qsort_block, const void *, const void *);
|
|
|
|
void
|
|
qsort_b(void *base, size_t nel, size_t width, qsort_block compar)
|
|
{
|
|
qsort_r(base, nel, width, compar,
|
|
(int (*)(void *, const void *, const void *))
|
|
GET_BLOCK_FUNCTION(compar));
|
|
}
|