Skip to main content

tx_document_save_file

Function tx_document_save_file 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tx_document_save_file( doc: *const TxDocument, path: *const c_char, ) -> TxError
Expand description

Saves the document to a file (pretty-printed).

ยงSafety

  • doc must be a valid, non-null pointer to a TxDocument.
  • path must be a valid, non-null pointer to a null-terminated UTF-8 C string containing a filesystem path.