crfsuite_create_instance

Function crfsuite_create_instance 

Source
pub unsafe extern "C" fn crfsuite_create_instance(
    iid: *const c_char,
    ptr: *mut *mut c_void,
) -> c_int
Expand description

Create an instance of an object by an interface identifier.

  • iid The interface identifier.
  • ptr The pointer to \c void* that points to the instance of the object if successful, *ptr points to \c NULL otherwise.

Returns int \c 1 if this function creates an object successfully, \c 0 otherwise. Note that this is inconsistent with the other CRFsuite API calls.