svn commit: samba r5673 - in trunk/source: . lib nsswitch torture

Volker Lendecke Volker.Lendecke at SerNet.DE
Mon Mar 7 04:46:42 GMT 2005


On Sun, Mar 06, 2005 at 07:57:58PM +0100, Simo Sorce wrote:
> > BTW, sprintf_append is a little utility function to step-by-step sprintf a
> > string without too much copying. Might be interesting elsewere as well.
> 
> why not use just asprintf and use %s as the first 2 char of format
> string and the string to be appended to as the first parameter?

Efficiency. If you create large strings, you don't want to memcpy everything
every time.

Volker


More information about the samba-technical mailing list