Skip to main content

silicera_profile_load

Function silicera_profile_load 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn silicera_profile_load( path: *const c_char, strict_machine: c_int, out_profile: *mut *mut SiliceraProfile, ) -> c_int
Expand description

Load an HNEP profile from a UTF-8 path.

On success writes a non-null *out_profile that must be freed with silicera_profile_free. strict_machine != 0 uses MismatchPolicy::StrictMachine.

§Safety

path must be a valid NUL-terminated UTF-8 C string (or null → -1). out_profile must be a valid writable pointer.