Hello! I frequently use ad-hoc code for this, however in library code, in which xmalloc is not much used.
I learn new gnulib things primarily from the manual. Do you plan to document it there? Le vendredi 24 mars 2023 à 22:50 +0100, Bruno Haible a écrit : > /* Return a copy of string S, as a NUL-terminated C string. */ > extern char * string_desc_c (string_desc_t s); Would it be appropriate to use the attribute module and mark this ATTRIBUTE_DEALLOC_FREE? Best regards, Vivien