M
Michael B Allen
Is it legit to not use arguments of a variable argument function? For
example consider that printf here does not use arg if fi = 1.
void
foo(int fi, const char *arg)
{
const char *fmts = { "%s", "" };
printf(fmts[fi], arg);
}
Thanks,
Mike
example consider that printf here does not use arg if fi = 1.
void
foo(int fi, const char *arg)
{
const char *fmts = { "%s", "" };
printf(fmts[fi], arg);
}
Thanks,
Mike