Skip to main content

free_string_symbol

Function free_string_symbol 

Source
pub fn free_string_symbol(prefix: &str) -> String
Expand description

Return the C symbol name for freeing FFI-allocated strings.

Format: {prefix}_free_string

§Example

let sym = free_string_symbol("htm");
assert_eq!(sym, "htm_free_string");