mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-15 04:05:06 +01:00
hello world
This commit is contained in:
parent
52b9c8fb38
commit
ddba35d06b
12 changed files with 492 additions and 6 deletions
8
src/basic_mem.rs
Normal file
8
src/basic_mem.rs
Normal 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue