Skip to main content

tx_new_comment

Function tx_new_comment 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tx_new_comment( doc: *mut TxDocument, text: *const c_char, ) -> TxNodeId
Expand description

Creates a new comment node.

ยงSafety

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