pub unsafe extern "C" fn tsk_treeseq_dump(
    self_: *const tsk_treeseq_t,
    filename: *const c_char,
    options: tsk_flags_t
) -> c_int
Expand description

@brief Write a tree sequence to file.

@rst Writes the data from this tree sequence to the specified file.

If an error occurs the file path is deleted, ensuring that only complete and well formed files will be written. @endrst

@param self A pointer to an initialised tsk_treeseq_t object. @param filename A NULL terminated string containing the filename. @param options Bitwise options. Currently unused; should be set to zero to ensure compatibility with later versions of tskit. @return Return 0 on success or a negative value on failure.