9 int main(int argc, char **argv) {
10 struct mscab_decompressor *decomp;
11 struct mscabd_cabinet *cab;
12 struct mscabd_file *file;
16 fprintf(stderr,"Usage: %s cab\n",argv[0]);
21 decomp = mspack_create_cab_decompressor(NULL);
25 cab = decomp->search(decomp,argv[i]);
28 for(file = cab->files;file;file=file->next)
29 decomp->extract(decomp,file,file->filename);
31 decomp->close(decomp,cab);
33 mspack_destroy_cab_decompressor(decomp);