8 main(int argc, char *argv[])
13 fprintf(stderr, "%s: call with one option: zip-file. First file"
14 " in zip-file will be deleted\n", argv[0]);
18 if ((za=zip_open(argv[1], ZIP_CHECKCONS))==NULL) {
19 fprintf(stderr, "%s: can't open '%s': %s\n", argv[0], argv[1],
20 zip_err_str[zip_err]);
24 if (zip_delete(za, 0)< 0) {
25 fprintf(stderr, "%s: can't delete first file in '%s': %s",
26 argv[0], argv[1], zip_err_str[zip_err]);
30 if (zip_close(za)!=0) {
31 fprintf(stderr, "%s: can't close file '%s': %s", argv[0], argv[1],
32 zip_err_str[zip_err]);