8000 minizip/miniunz.c at patch-1 · kant/minizip · GitHub
[go: up one dir, main page]

Skip to content

Latest commit

 

History

History
573 lines (500 loc) · 15.4 KB

miniunz.c

File metadata and controls

573 lines (500 loc) · 15.4 KB
uf = unzOpen64(zipfilename);
#endif
}
if (uf == NULL)
{
printf("Cannot open %s\n", zipfilename);
return 1;
}
printf("%s opened\n", zipfilename);
/* Process command line options */
if (opt_do_list == 1)
{
ret = do_list(uf);
}
else if (opt_do_extract == 1)
{
if (opt_extractdir && CHDIR(dirname))
{
printf("Error changing into %s, aborting\n", dirname);
exit(-1);
}
if (filename_to_extract == NULL)
ret = do_extract_all(uf, opt_do_extract_withoutpath, opt_overwrite, password);
else
ret = do_extract_onefile(uf, filename_to_extract, opt_do_extract_withoutpath, opt_overwrite, password);
}
unzClose(uf);
return ret;
}
0