X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/83af686b3f8fa028e75e3bd6c3babef4c143ddbe..cededfbe1efb12e68c1defe008f1d69d97f4cbe3:/man/dstr.3 diff --git a/man/dstr.3 b/man/dstr.3 index 998e3f3..959a7aa 100644 --- a/man/dstr.3 +++ b/man/dstr.3 @@ -103,6 +103,7 @@ typedef struct dstr { char *buf; /* Pointer to string buffer */ size_t sz; /* Size of the buffer */ size_t len; /* Length of the string */ + arena *a; /* Pointer to arena */ } dstr; .VE The @@ -159,6 +160,14 @@ element is zero) and the nonexistent string (a null pointer). Any whose .B len is zero is an empty string. +.PP +The +.I a +member refers to the arena from which the string's buffer has been +allocated. Immediately after creation, this is set to be +.BR arena_stdlib (3); +you can set it to point to any other arena of your choice before the +buffer is allocated. .SS "Creation and destruction" The caller is responsible for allocating the .B dstr