[Toolserver-l] Alternative C function to vasprintf() on Toolserver

Andrew Dunbar hippytrail at gmail.com
Sat Apr 9 07:29:39 UTC 2011


I've got a little program to index dump files that supports Windows
and Linux but it doesn't compile on the Toolserver with either cc or
gcc due to the lack of the function vasprintf(). It's a GNU extension
so I'm surprised it didn't work even with gcc.

Why doesn't the Toolserver gcc have it, and does anybody know of a workaround?

vasprintf() is a version of vsprintf() which writes to a memory buffer
of just the right size that it allocates and which the caller must
call free() on when done.

Andrew Dunbar (hippietrail)



More information about the Toolserver-l mailing list