I have a c function declared as such:
I want to manipulate msg and the variadic variables and then pass them into snprintf, but I don't know how to manipulate the variadic variables. I know how to get them with the VA_XXX macros, but then I don't know how to pass them to another variadic function (snprintf). Because there will be a different number of values each time I can't hard code anything. Does anyone know how to do this?Code:logOut(unsigned char logLevel, char *msg, ...);
Thanks in advance.