Function yrs::yxmltext_get_attr[][src]

#[no_mangle]
pub unsafe extern "C" fn yxmltext_get_attr(
    txt: *const XmlText,
    txn: *const Transaction,
    attr_name: *const c_char
) -> *mut c_char
Expand description

Returns the value of a current YXmlText, given its name, or a null pointer if not attribute with such name has been found. Returned pointer is a null-terminated UTF-8 encoded string, which should be released using ystring_destroy function.

An attr_name must be a null-terminated UTF-8 encoded string.