From: John Fletcher (J.P.Fletcher_at_[hidden])
Date: 2006-09-27 11:48:48


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