hello world

This commit is contained in:
nora 2023-09-29 21:47:19 +02:00
parent 52b9c8fb38
commit ddba35d06b
12 changed files with 492 additions and 6 deletions

8
src/basic_mem.rs Normal file
View file

@ -0,0 +1,8 @@
#[no_mangle]
pub(crate) unsafe extern "C" fn memset(ptr: *mut u8, constant: u8, len: usize) {
for i in 0..len {
unsafe {
*ptr.add(i) = constant;
}
}
}