Skip to main content

copy

Function copy 

Source
pub(crate) unsafe fn copy(text: *const c_char) -> String
Expand description

Copies a library string; null reads as empty.

ยงSafety

text is null or a NUL-terminated string that stays valid for the call.