ucx/comparator.c

changeset 91
91595a45fad6
parent 89
47f7fdbddb62
child 92
7625a8efcc97
--- 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));
+}

mercurial