Re: [Mesa-dev] [PATCH v3 1/3] util: introduce the util_strnappend function (v2)

2019-01-14 Thread Emil Velikov
On 2019/01/11, Silvestrs Timofejevs wrote: > This function is similar to strncat, but unlike strncat it allows to > concatenate the buffer with a formatted string. The alternative would > be to have an intermediate string that is formated first, and then > appended via strncat. > Personally I'd go

[Mesa-dev] [PATCH v3 1/3] util: introduce the util_strnappend function (v2)

2019-01-11 Thread Silvestrs Timofejevs
This function is similar to strncat, but unlike strncat it allows to concatenate the buffer with a formatted string. The alternative would be to have an intermediate string that is formated first, and then appended via strncat. v2: revert accidentally introduced blank line removal Signed-off-b