[dm-devel] [PATCH v2 2/9] libmultipath: strbuf: simple api for growing string buffers

Martin Wilck mwilck at suse.com
Thu Aug 12 07:19:04 UTC 2021


Hello Bart,

On Mi, 2021-08-11 at 09:08 -0700, Bart Van Assche wrote:
> On 8/11/21 8:41 AM, mwilck at suse.com wrote:
> > Add an API for string buffers that grow in size as text is added.
> > This API will be useful in several places of the multipath-tools
> > code
> > base. Add unit tests for these helpers, too.
> 
> Has it been considered to switch to C++ and use std::string and/or 
> std::ostringstream instead of implementing a string library in C?
> 

no, not at this time. It's an interesting long-term perspective, but
for the time being, I think we can quite well stick with C.

Regards,
Martin






More information about the dm-devel mailing list