Add comments to compare/swap function

This commit is contained in:
Nils O. Selåsdal
2013-12-03 17:30:37 +01:00
parent 2b022aeddc
commit 43a14a5149
+4 -4
View File
@@ -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