]> git.droids-corp.org - protos/libecoli.git/blobdiff - lib/ecoli_strvec.h
config for string node
[protos/libecoli.git] / lib / ecoli_strvec.h
index 35328366073b4b3406f103488007eca100610363..8e14973b40123ee646ac9b882dc97840e8286114 100644 (file)
@@ -150,6 +150,17 @@ const char *ec_strvec_val(const struct ec_strvec *strvec, size_t idx);
 int ec_strvec_cmp(const struct ec_strvec *strvec1,
                const struct ec_strvec *strvec2);
 
+/**
+ * Sort the string vector.
+ *
+ * @param strvec
+ *   The pointer to the first string vector.
+ * @param str_cmp
+ *   The sort function to use. If NULL, use strcmp.
+ */
+void ec_strvec_sort(struct ec_strvec *strvec,
+               int (*str_cmp)(const char *s1, const char *s2));
+
 /**
  * Dump a string vector.
  *