//! Specific for C types.
//!
//! Available with the `c-types` feature.
use CStr;
use c_char;
use validate_pointer_is_not_null;
use crate PointerError;
/// Convert a reference to a C string into a static reference to Rust `str`.
///
/// # Safety
///
/// The pointer must be a valid reference or behavior is undefined.
///
/// # Errors
///
/// If the C string is not a valid UTF-8 string.
pub unsafe