
27 Sep
2006
27 Sep
'06
3:48 p.m.
John Fletcher wrote:
/*return*/ printf(++s, args...); return;
When I added this example:
const char* more = "have nothing to do with the case %s %s\n"; printff(more, "tra la");
the output is
have nothing to do with the case tra la tra la
instead of an exception for an extra format
John
Ignore all this bit. I forgot to rename the inner call from printf to printff. Now the previous code return printff(++s, args...); works fine and gives the expected exception. It makes the point about this way of doing it being better. John