1.1 --- a/src/cx/map.h Fri May 27 12:59:41 2022 +0200 1.2 +++ b/src/cx/map.h Fri May 27 13:25:42 2022 +0200 1.3 @@ -262,6 +262,14 @@ 1.4 return map->cl->iterator(map); 1.5 } 1.6 1.7 +/** 1.8 + * Convenience function to make a key from a NULL-terminated string. 1.9 + * 1.10 + * @param str the NULL-terminated string 1.11 + * @return the string wrapped to be used as a map key 1.12 + */ 1.13 +__attribute__((__nonnull__, __warn_unused_result__)) 1.14 +CxDataPtr cxMapKeyStr(char const *str); 1.15 1.16 #ifdef __cplusplus 1.17 }