For an example, I have a function foo()
int foo(const char* format,...) {
va_list args;
va_start(args, format)
...
va_end(args);
return bytes;
}
I have a format "%d%lf%s" and some arguments int a, double b and char* c is null-terminated string.
How to pull variables from args and calculate sizeof(a)+sizeof(b)+sizeof(c)?