src/cx/map.h

changeset 558
9b767b07602c
parent 555
d79fbd028e26
child 563
69a83fad8a35
--- a/src/cx/map.h	Fri May 27 12:59:41 2022 +0200
+++ b/src/cx/map.h	Fri May 27 13:25:42 2022 +0200
@@ -262,6 +262,14 @@
     return map->cl->iterator(map);
 }
 
+/**
+ * Convenience function to make a key from a NULL-terminated string.
+ *
+ * @param str the NULL-terminated string
+ * @return the string wrapped to be used as a map key
+ */
+__attribute__((__nonnull__, __warn_unused_result__))
+CxDataPtr cxMapKeyStr(char const *str);
 
 #ifdef    __cplusplus
 }

mercurial