> One approach I like very much is that of stralloc, that I first saw in > Amanda code. Concatenating multiple strings into a newly-allocated > buffer created with the right size is as simple as stralloc(string1, > string2, ..., NULL); Notice that -liberty offers this as concat(const char* first, ...). Regards, Martin