Logo Search packages:      
Sourcecode: cbmconvert version File versions  Download package

void deleteArchive ( struct Archive archive  ) 

Deallocate an archive data structure.

archive the archive to be deallocated

Definition at line 43 of file archive.c.

References ArchiveEntry::data, Archive::first, and ArchiveEntry::next.

Referenced by main().

  while (archive->first) {
    struct ArchiveEntry* ae = archive->first->next;
    free (archive->first->data);
    free (archive->first);
    archive->first = ae;

  free (archive);

Generated by  Doxygen 1.6.0   Back to index