Added ndn_Name_match.
diff --git a/ndn-cpp/c/name.h b/ndn-cpp/c/name.h
index b7be236..8105d60 100644
--- a/ndn-cpp/c/name.h
+++ b/ndn-cpp/c/name.h
@@ -52,6 +52,14 @@
   self->nComponents = 0;
 }
 
+/**
+ * Return true if the N components of this name are the same as the first N components of the given name.
+ * @param self A pointer to the ndn_Name struct.
+ * @param name A pointer to the other name to match.
+ * @return 1 if this matches the given name, 0 otherwise.  This always returns 1 if this name is empty.
+ */
+int ndn_Name_match(struct ndn_Name *self, struct ndn_Name *name);
+
 #ifdef __cplusplus
 }
 #endif