// this is the "wrapper" file for the zip/unzip functions to expose to BOINC clients #include "boinc_zip.h" // send in an input file or path wildcard, output filename, and basic options #ifndef _MAX_PATH #define _MAX_PATH 255 #endif int boinc_zip(int bZip, const char *fileIn, const char *fileOut, const char *options) { int carg; char** av; int iRet = 0, i = 0; // if unzipping but no file out, so it just uses cwd, only 3 args if (bZip == UNZIP_IT && !fileOut) carg = 3; else carg = 4; // make a dynamic array av = (char**) calloc(4, sizeof(char*)); for (i=0;i