sort-utils: add generic uint16_t comparison call
This commit is contained in:
committed by
Luca Boccassi
parent
07f314575b
commit
4c4de97db8
@@ -31,3 +31,7 @@ void *xbsearch_r(const void *key, const void *base, size_t nmemb, size_t size,
|
||||
int cmp_int(const int *a, const int *b) {
|
||||
return CMP(*a, *b);
|
||||
}
|
||||
|
||||
int cmp_uint16(const uint16_t *a, const uint16_t *b) {
|
||||
return CMP(*a, *b);
|
||||
}
|
||||
|
||||
@@ -76,3 +76,4 @@ static inline void qsort_r_safe(void *base, size_t nmemb, size_t size, compariso
|
||||
})
|
||||
|
||||
int cmp_int(const int *a, const int *b);
|
||||
int cmp_uint16(const uint16_t *a, const uint16_t *b);
|
||||
|
||||
Reference in New Issue
Block a user