Files
Core/examples/fs_demo.rs
T

13 lines
227 B
Rust

#![no_std]
#![no_main]
use kos::fs::fs_read;
#[no_mangle]
pub extern "C" fn _start() -> ! {
let path = c"/rd/1/readme.txt";
let mut buf = [0u8; 512];
let (_status, _bytes) = fs_read(path, &mut buf);
loop {}
}