Skip to main content

string_duplicate_bounded

Function string_duplicate_bounded 

Source
pub unsafe fn string_duplicate_bounded(
    string: *const c_char,
    max_length: usize,
) -> *mut c_char
Expand description

Duplicate a string up to a maximum length

ยงSafety

This function is unsafe because it dereferences raw pointers.