<div class="gmail_quote">On Thu, Nov 10, 2011 at 09:18, Dmitry Karpeev <span dir="ltr"><<a href="mailto:karpeev@mcs.anl.gov">karpeev@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>Besides the number of arguments, there is the issue of them being passed on the stack, as I (sort of) understand.</div><div>The format string would tell us what type each argument is supposed to be, so that the args can be cast correctly inside the called function. Is that right? </div>
</blockquote></div><br><div>Passing the correct type is the issue. Passing on the stack vs. register is an implementation detail that accidentally makes incorrect code work in some circumstances. With a format string, you could explicitly ignore entries, so you wouldn't have to bother passing NULL.</div>