On Fri, Mar 13, 2015 at 6:55 PM, David Malcolm wrote:
>> As documented in [1] asprintf and vasprintf return:
> I assume that we can rely that any vasprintf implementation manages on
> failure to at least either write NULL to *ret or to return -1, even if
> some of them fail to do both?
Yes, thi
On Fri, 2015-03-13 at 17:53 +0100, Uros Bizjak wrote:
> Hello!
>
> As documented in [1] asprintf and vasprintf return:
>
> --quote--
> Return value:
>
> Both functions set *ret to be a pointer to a malloc()'d buffer
> sufficiently large to hold the formatted string. This pointer should
> be pass
Hello!
As documented in [1] asprintf and vasprintf return:
--quote--
Return value:
Both functions set *ret to be a pointer to a malloc()'d buffer
sufficiently large to hold the formatted string. This pointer should
be passed to free() to release the allocated storage when it is no
longer needed.