Created
May 18, 2014 02:09
-
-
Save huonw/06dd30d3255619d5ee81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#![no_std] | |
extern crate rlibc; | |
pub fn foo(x: *mut u8, y: *u8) { | |
unsafe {rlibc::memcpy(x, y, 1);} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment