tech-kern archive

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


On Wed, Sep 07, 2011 at 09:00:26PM -0400, Mouse wrote:
> > And I am not aware of a solution where you can have two "..." in a C
> > function.
> You can't actually _write_ something like
> void foo(const char *, ..., int, const char *, const char *, ...);

But you can do:
void foo(const char *, va_list, const char *, ...)
if you need to add some extra args.

What would be useful is a format effector that processes a format
string and a va_list (recursive call inside vsnprintf).

But adding non-standard effectors is not really a good idea.


David Laight:

Home | Main Index | Thread Index | Old Index