/*=== FUNCTION ============================================================* Name: qes_seq_destroy Paramters: struct qes_seq *: seq to destroy. Description: Deallocate and set to NULL a struct qes_seq on the heap. Returns: void. *===========================================================================*/ void qes_seq_destroy_ (struct qes_seq *seq) { if (seq != NULL) { qes_str_destroy_cp(&seq->name); qes_str_destroy_cp(&seq->comment); qes_str_destroy_cp(&seq->seq); qes_str_destroy_cp(&seq->qual); qes_free(seq); } }
void qes_seqfile_destroy_(struct qes_seqfile *seqfile) { if (seqfile != NULL) { qes_file_close(seqfile->qf); qes_str_destroy_cp(&seqfile->scratch); qes_free(seqfile); } }
void qes_str_destroy (struct qes_str *str) { qes_str_destroy_cp(str); qes_free(str); }