diff options
| author | bjorn3 <bjorn3@users.noreply.github.com> | 2019-02-11 19:18:52 +0100 |
|---|---|---|
| committer | bjorn3 <bjorn3@users.noreply.github.com> | 2019-02-11 19:18:52 +0100 |
| commit | c68e76c33bf8b8e3fc0dabb3f7d9133328a7ea6d (patch) | |
| tree | af7a860c4eed847a6d4116a42a78c83c3e39bb75 /example/mini_core.rs | |
| parent | 4bb8bfca94aa704b2f57f33d2f6be121ee88e3fa (diff) | |
| download | rust-c68e76c33bf8b8e3fc0dabb3f7d9133328a7ea6d.tar.gz rust-c68e76c33bf8b8e3fc0dabb3f7d9133328a7ea6d.zip | |
Implement variadic function calling
Diffstat (limited to 'example/mini_core.rs')
| -rw-r--r-- | example/mini_core.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/example/mini_core.rs b/example/mini_core.rs index 0ddd3ade401..4da661ebb8d 100644 --- a/example/mini_core.rs +++ b/example/mini_core.rs @@ -338,6 +338,7 @@ pub mod libc { #[link(name = "c")] extern "C" { pub fn puts(s: *const u8); + pub fn printf(format: *const char, ...) -> i32; pub fn malloc(size: usize) -> *mut u8; pub fn free(ptr: *mut u8); pub fn memcpy(dst: *mut u8, src: *const u8, size: usize); |
