Add comments to compare/swap function
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
///compare function. Needs only to return < 0 if
|
///compare function. Needs only to return < 0 if
|
||||||
//the first element is less than the second
|
//a is less tan b
|
||||||
typedef int (*uc_hs_cmp)(const void *, const void *, void *cookie);
|
typedef int (*uc_hs_cmp)(const void *a, const void *b, void *cookie);
|
||||||
//swap function
|
//swap function, must swap around element a and b
|
||||||
typedef void (*uc_hs_swp)(void *, void *);
|
typedef void (*uc_hs_swp)(void *a, void *b);
|
||||||
|
|
||||||
/** Sort an array.
|
/** Sort an array.
|
||||||
* @param base start of array
|
* @param base start of array
|
||||||
|
|||||||
Reference in New Issue
Block a user