How would I go about passing all arguments to an inside function? I cannot find an answer anywhere for C.
Here's the basic idea of what I'm trying to do:
void customPrint(arguments) {
Serial.print(arguments);
Serial.print(arguments);
}
I've tried argc/argv syntax as well as ... syntax but cannot figure it out.
You need a function which accepts a
va_listargument. None of the Arduino print variants accept this type of argument.So it is not possible.