Reputation: 40140
Can this be done at all? Is there, for example, some sort of va_num_args
?
Basically, I am logging events across a serial port in a prinf()
like manner, taking a format string and, optional ly, some arguments. I would like to know if there are any such option arguments present.
E.g, can I distinguish between Trace("No paramters here");
and Trace("forty two = %d", 43 - 1);
?
Upvotes: 1
Views: 139
Reputation: 6538
No, but the following methods can be used instead:
printf
).Upvotes: 5