We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e01733 commit b9598edCopy full SHA for b9598ed
src/c.rs
@@ -20,6 +20,7 @@ use crate::error::PointerError;
20
/// # Errors
21
///
22
/// If the C string is not a valid UTF-8 string.
23
+#[deprecated(since = "0.8.1", note = "Use std::ffi::CStr")]
24
#[inline]
25
pub unsafe fn ref_str<'a>(string: *const c_char) -> Result<&'a str, PointerError> {
26
// ATTENTION! 'a lifetime is required, does NOT REMOVE it
0 commit comments