int main(int argc, char *argv[]) { static UzpVer *pVersion; /* no pervert jokes, please... */ pVersion = UzpVersion(); printf("UnZip stub: checking version numbers (DLL is dated %s)\n", pVersion->date); printf(" UnZip versions: expecting %d.%d%d, using %d.%d%d%s\n", UZ_MAJORVER, UZ_MINORVER, UZ_PATCHLEVEL, pVersion->unzip.major, pVersion->unzip.minor, pVersion->unzip.patchlevel, pVersion->betalevel); printf(" ZipInfo versions: expecting %d.%d%d, using %d.%d%d\n", ZI_MAJORVER, ZI_MINORVER, UZ_PATCHLEVEL, pVersion->zipinfo.major, pVersion->zipinfo.minor, pVersion->zipinfo.patchlevel); /* D2_M*VER and os2dll.* are obsolete, though retained for compatibility: printf(" OS2 DLL versions: expecting %d.%d%d, using %d.%d%d\n", D2_MAJORVER, D2_MINORVER, D2_PATCHLEVEL, pVersion->os2dll.major, pVersion->os2dll.minor, pVersion->os2dll.patchlevel); */ if (pVersion->flag & 2) printf(" using zlib version %s\n", pVersion->zlib_version); printf("\n"); /* call the actual UnZip routine (string-arguments version) */ return UzpMain(argc, argv); }
/* Program execution starts here with Metrowerks SIOUX-Console */ int main(int argc,char **argv) { int return_code; SIOUXSettings.asktosaveonclose = FALSE; SIOUXSettings.showstatusline = TRUE; SIOUXSettings.columns = 100; SIOUXSettings.rows = 40; argc = ccommand(&argv); return_code = UzpMain(argc,argv); printf("\n\n Finish %d",return_code); return return_code; }
int main (int argc, char **argv) { int ret; /* wrapper to UzpMain */ /* set TZ env variable, if not already set */ if (getenv("TZ") == NULL) { setenv ("TZ", "PST8PDT", 1); /* env.h */ } /* printf ("DEBUG: calling UzpMain() . . .\n"); */ ret = UzpMain (argc, argv); exit (ret); }