Maraiah/source/tycho/lib.rs

17 lines
254 B
Rust
Raw Normal View History

2019-05-30 00:09:58 -07:00
use maraiah::durandal::ffi;
2019-05-15 12:54:35 -07:00
#[no_mangle]
2019-05-30 00:09:58 -07:00
pub extern "C" fn test_fn(fname: *const ffi::c_char)
{
let fname = unsafe {ffi::CStr::from_ptr(fname)};
println!("hello, world! from rust: {}", fname.to_str().unwrap());
}
/*
struct Project
2019-05-15 12:54:35 -07:00
{
}
2019-05-30 00:09:58 -07:00
*/
2019-05-15 12:54:35 -07:00
// EOF