diff -r 2aae1246b578 -r 9b767b07602c src/cx/map.h --- 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 }