I need to create a function that receives a variable number of arguments in order to send them to the fprintf function itself.
My function will receive an integer argument, followed by a printf-like list of arguments. It will then take the first argument, process it and call the fprintf function with the other arguments.
I've read the documentation about the va_list and other functions defined in stdarg.h, but can't figure how or what will I pass to the fprintf function.
Thanks for your help