I want to develop a c function with random number of arguments:
int myfunction(char *fmt,...) {
....
}
then in my function I want to call printf() with the same input arguments of my function (the fmt and the other random arguments):
int myfunction(char *fmt,...) {
....
printf(/*What I have to put here?*/)
....
}
How I can call printf() in this case?