Skip to main content

pamoja_string_data

Function pamoja_string_data 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_string_data( string: *const PamojaString, ) -> *const c_char
Expand description

Returns a pointer to a string’s bytes.

The pointer is valid until the string is freed.

§Returns

A null-terminated UTF-8 string, or null if string is null.

§Safety

string must be a live handle from a call that produced one, or null. After pamoja_string_free it must not be used again.