more tests

This commit is contained in:
nora 2023-09-30 22:52:11 +02:00
parent 043c960708
commit 1827bd19c9
12 changed files with 240 additions and 72 deletions

View file

@ -4,14 +4,14 @@
use core::ffi::c_char;
use libuwuc::{println, utils::SharedThinCstr};
use libuwuc::println;
extern crate rawc;
#[no_mangle]
extern "C" fn main(_argc: i32, _argv: *const *const c_char) -> i32 {
println!("Hello, world!");
let pwd = libuwuc::env::getenv(SharedThinCstr::from_array(b"PWD\0"));
let pwd = libuwuc::env::getenv(libuwuc::cstr!("PWD"));
println!("PWD={pwd:?}");
0
}