Read more of or all of Variable length Parameter Lists and perlcall. "..." just like in C. ST(1234) can be read (incoming SV*s) and can also be assigned to (returned SV*s, must also use XSRETURN if you do ST assignment for returned values).
Comment on Re: XS: how to manually handle input argument stack?