|
|
1.1 ! root 1: #include <picfile.h> ! 2: #include <stdio.h> ! 3: void picclose(f) ! 4: PICFILE *f; ! 5: { ! 6: register i; ! 7: (*f->cl)(f); ! 8: if(!(f->flags&PIC_NOCLOSE)) close(f->fd); ! 9: if(f->cmap) free(f->cmap); ! 10: for(i=0;i!=f->argc;i++) free(f->argv[i]); ! 11: free((char *)f->argv); ! 12: free((char *)f); ! 13: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.