On Thu, Jun 27, 2013 at 07:01:52PM +0200, Markus Wichmann wrote: > The function you are looking for is called asprintf().
Isn't asprintf just GNU extension? An IIRC such things a kinda mostly frown upon here? Though it sure sounds as very nice function.