Added ndn_Exclude_compareComponents.
diff --git a/ndn-cpp/c/interest.c b/ndn-cpp/c/interest.c
new file mode 100644
index 0000000..361412e
--- /dev/null
+++ b/ndn-cpp/c/interest.c
@@ -0,0 +1,18 @@
+/**
+ * @author: Jeff Thompson
+ * See COPYING for copyright and distribution information.
+ */
+
+#include "util/ndn_memory.h"
+#include "interest.h"
+
+int ndn_Exclude_compareComponents(struct ndn_NameComponent *component1, struct ndn_NameComponent *component2)
+{
+ if (component1->valueLength < component2->valueLength)
+ return -1;
+ if (component1->valueLength > component2->valueLength)
+ return 1;
+
+ // The components are equal length. Just do a byte compare.
+ return ndn_memcmp(component1->value, component2->value, component1->valueLength);
+}