Mailinglist Archive: opensuse-programming (6 mails)

< Previous Next >
[opensuse-programming] determining the number of args in a vararg call - vscprintf() ?
  • From: Per Jessen <per@xxxxxxxxxxxx>
  • Date: Sat, 19 Feb 2011 11:21:58 +0100
  • Message-id: <ijo5k6$kg7$>
What is the best/correct way of counting the number of args in vararg

int function( int blah, ... )

I've been googling a bit, and came across mentions of "vscprintf", in
particular this alternative:

#define vscprintf(f,a) vsnprintf(NULL,0,f,a)

/Per Jessen, Z├╝rich

To unsubscribe, e-mail: opensuse-programming+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-programming+help@xxxxxxxxxxxx

< Previous Next >
List Navigation