mirror of
https://github.com/redox-os/va_list-rs
synced 2026-08-24 08:06:08 +00:00
No description
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| deps/helper | ||
| src | ||
| tests | ||
| .gitignore | ||
| .travis.yml | ||
| Cargo.toml | ||
| LICENCE | ||
| LICENSE-APACHE | ||
| LICENSE-MIT | ||
| README.md | ||
Rust implementation of C's va_list type
Overview
This crate provides a rust VaListtype, which is binary-compatible for the C type of the same name. It is intended to allow rust code to provide the complex logic of variable argument functions.
Example
extern crate va_list;
use va_list::VaList;
extern "C" print_ints_va(count: u32, mut args: VaList)
{
for i in (0 .. count) {
println!("{}: {}", i, args.get::<i32>());
}
}
Status
- x86-64 linux/ELF ABI (aka System-V) : Tested in the wild, works relatively well
- x86 linux/ELF ABI (sys-v) : Unit tested only
License
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.