]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/mempool.h
option parser: Empty stub of the documentation
[libucw.git] / ucw / mempool.h
index bcc22bd35bcf755e0aca15ad05e15655bd66332b..350054e3fc481d0eb8a8879daabb1c1d021f7178 100644 (file)
@@ -410,6 +410,11 @@ static inline char *LIKE_MALLOC mp_strcat(struct mempool *mp, const char *x, con
  * tells how many there is of them.
  **/
 char *mp_strjoin(struct mempool *p, char **a, uns n, uns sep) LIKE_MALLOC;
+/**
+ * Convert memory block to a string. Makes a copy of the given memory block
+ * in the mempool @p, adding an extra terminating zero byte at the end.
+ **/
+char *mp_str_from_mem(struct mempool *p, const void *mem, uns len) LIKE_MALLOC;
 
 
 /***