Function rdkafka::util::cstr_to_owned

source ·
pub unsafe fn cstr_to_owned(cstr: *const c_char) -> String
Expand description

Converts a C string into a String.

§Safety

cstr must point to a valid, null-terminated C string.