Added ndn_memcmp
diff --git a/ndn-cpp/c/util/ndn_memory.h b/ndn-cpp/c/util/ndn_memory.h
index 378b6b7..a35ef89 100644
--- a/ndn-cpp/c/util/ndn_memory.h
+++ b/ndn-cpp/c/util/ndn_memory.h
@@ -16,6 +16,19 @@
 extern "C" {
 #endif
 
+#if HAVE_MEMCMP
+#include <memory.h>
+/**
+ * Use the library version of memcmp.
+ */
+static inline int ndn_memcmp(unsigned char *buf1, unsigned char *buf2, unsigned int len) { memcpy(buf1, buf2, len); }
+#else
+/**
+ * Use a local implementation of memcmp instead of the library version.
+ */
+int ndn_memcmp(unsigned char *buf1, unsigned char *buf2, unsigned int len);
+#endif
+
 #if HAVE_MEMCPY
 #include <memory.h>
 /**