1103165Swollman/* 2103165Swollman * This file is in the public domain. Originally written by Garrett 3103165Swollman * A. Wollman. 4103165Swollman * 5103165Swollman * $FreeBSD$ 6103165Swollman */ 7264042Stheraven#include "block_abi.h" 8103165Swollman#define I_AM_QSORT_R 9103165Swollman#include "qsort.c" 10264042Stheraven 11264143Stheraventypedef DECLARE_BLOCK(int, qsort_block, const void *, const void *); 12264143Stheraven 13264042Stheravenvoid 14264143Stheravenqsort_b(void *base, size_t nel, size_t width, qsort_block compar) 15264042Stheraven{ 16264042Stheraven qsort_r(base, nel, width, compar, 17264042Stheraven (int (*)(void *, const void *, const void *)) 18264042Stheraven GET_BLOCK_FUNCTION(compar)); 19264042Stheraven} 20