Ellipses (…) is used for the same. A general function definition looks as follows
void f(int k,…) {
}