Function zeroconf::ffi::c_str::raw_to_str[][src]

pub unsafe fn raw_to_str<'a>(s: *const c_char) -> &'a str
Expand description

Returns the specified *const c_char as a &'a str. Ownership is not taken.

Safety

This function is unsafe due to a call to the unsafe function CStr::from_ptr().