mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-03-15 00:26:06 +01:00
more tests
This commit is contained in:
parent
043c960708
commit
1827bd19c9
12 changed files with 240 additions and 72 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue