--- a/ucx/comparator.c Wed Feb 27 10:28:02 2013 +0100
+++ b/ucx/comparator.c Wed Feb 27 10:35:42 2013 +0100
@@ -25,3 +25,7 @@
return ptr1 < ptr2 ? -1 : 1;
}
}
+
+int ucx_memcmp(void *ptr1, void *ptr2, void *n) {
+ return memcmp(ptr1, ptr2, *((size_t*)n));
+}