A way to use C va_list
from Rust.
```Rust extern crate libc;
use libc::{cchar, cint, c_uint};
// Here we declare the C function with valist that we'll use. extern "C" { fn vprintf(f: *const cchar, v: valist::valist) -> c_int; }
fn main() { // You just have to call this macro and it'll return you the valist. tovalist!(|v: valist::valist| { // And now you can just give the valist to the C function: vprintf(b"%d %d %s\n\0".asptr() as *const cchar, v); }, 1, 2, b"salut!\0".as_ptr()); // We pass the arguments after the closure. } ```