Skip to main content

tx_double_attribute

Function tx_double_attribute 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tx_double_attribute( doc: *const TxDocument, el: TxNodeId, name: *const c_char, default_val: c_double, ) -> c_double
Expand description

Returns a double (f64) attribute value, or default_val if the attribute does not exist or cannot be parsed.

ยงSafety

  • doc must be a valid, non-null pointer to a TxDocument.
  • name must be a valid, non-null pointer to a null-terminated UTF-8 string.