Function crfsuite_sys::crfsuite_item_append_attribute [] [src]

pub unsafe extern "C" fn crfsuite_item_append_attribute(
    item: *mut crfsuite_item_t,
    attr: *const crfsuite_attribute_t
) -> c_int

Append an attribute to the item structure.

  • item The pointer to crfsuite_item_t.
  • attr The attribute to be added to the item.

Returns int \c 0 if successful, \c -1 otherwise.