Post ARGRLt3FwBKqvCuPRo by hjvt@hachyderm.io
 (DIR) More posts by hjvt@hachyderm.io
 (DIR) Post #ARGPLDZZxE9yMya4dU by moffintosh@berserker.town
       2023-01-03T10:48:49Z
       
       0 likes, 0 repeats
       
       2022-12-19: GCC now includes Modula-2 and Rust. Do they work on OpenBSD?https://briancallahan.net/blog/20221219.html #rust #RustLang #OpenBSD
       
 (DIR) Post #ARGRLt3FwBKqvCuPRo by hjvt@hachyderm.io
       2023-01-03T11:11:20Z
       
       0 likes, 0 repeats
       
       @moffintosh ```unsafe fn main() {    let a = "Hello world from Rust!\n\0";    let b = a as *const str;    let c = b as *const i8;    printf(c);}```This is a bit contrived. I'd use a b"byte string literal\n\0".as_ptr() rather than casting a str to a slice of bytes.