From 4b95e82a32f07ec80445dd4103103ebaa356c89b Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Fri, 25 Feb 2011 18:48:10 +0100 Subject: Add new radixsort and sradixsort functions Taken from FreeBSD. --- include/bsd/stdlib.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/bsd') diff --git a/include/bsd/stdlib.h b/include/bsd/stdlib.h index bfe3027..ea790bc 100644 --- a/include/bsd/stdlib.h +++ b/include/bsd/stdlib.h @@ -54,6 +54,10 @@ void setprogname(const char *); int heapsort (void *, size_t, size_t, int (*)(const void *, const void *)); int mergesort(void *base, size_t nmemb, size_t size, int (*cmp)(const void *, const void *)); +int radixsort(const unsigned char **base, int nmemb, + const unsigned char *table, unsigned endbyte); +int sradixsort(const unsigned char **base, int nmemb, + const unsigned char *table, unsigned endbyte); void *reallocf(void *ptr, size_t size); -- cgit v1.2.3