mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-14 19:55:07 +01:00
fopen and tests
This commit is contained in:
parent
862ef8dc22
commit
b795ee80c9
14 changed files with 97 additions and 45 deletions
|
|
@ -91,7 +91,9 @@ pub unsafe extern "C" fn fopen<'a>(
|
|||
pathname: SharedThinCstr,
|
||||
mode: SharedThinCstr,
|
||||
) -> Option<&'a FileStream> {
|
||||
todo!()
|
||||
libuwuc::io::stream::fopen(pathname, mode)
|
||||
.map_err(|err| libuwuc::error::set_errno(err.0))
|
||||
.ok()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue