X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fmempool.h;h=350054e3fc481d0eb8a8879daabb1c1d021f7178;hb=4d8858ba28597c458bef262399b553e5da89442a;hp=bcc22bd35bcf755e0aca15ad05e15655bd66332b;hpb=ba1c173f544383aa6553a75dee6e6858d8f243a4;p=libucw.git diff --git a/ucw/mempool.h b/ucw/mempool.h index bcc22bd3..350054e3 100644 --- a/ucw/mempool.h +++ b/ucw/mempool.h @@ -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; /***