tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: must use gcc builtin?

On Fri, Feb 24, 2012 at 07:38:42AM +0200, Alan Barrett wrote:
 > Perhaps a va_list_to_sequential_memory() conversion interface could
 > be provided.  It would take a va_list, copy it into the sort of
 > memory buffer that you have advocated, and return a pointer to it,
 > and a size.  Or it could skip the copying if the va_list is already
 > in that sort of format.  There would probably also have to be a way
 > of freeing the memory.

That won't work, or at least not easily, because you'd need to know
how many arguments were passed. And their types.

David A. Holland

Home | Main Index | Thread Index | Old Index