&str to std::ffi::CStr

⚓ Rust    📅 2026-04-30    👤 surdeus    👁️ 1      

surdeus

Info

This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: &str to std::ffi::CStr

Hello,

I would like to know how to convert a &str to a std::ffi::CStr (not std::ffi::CString) ?

Thank you very much in advance for any help.

7 posts - 5 participants

Read full topic

🏷️ Rust_feed