home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2003 August / VPR0308.ISO / OLS / ZIP3J037 / zip3j037.lzh / zip32j / SRC / ZIP32J / MAIN.C < prev    next >
C/C++ Source or Header  |  2000-12-16  |  1KB  |  36 lines

  1. /*
  2.     main.c
  3.  
  4.         by Yoshioka Tsuneo(QWF00133@niftyserve.or.jp)
  5.         welcome any e-mail!!
  6.         You can use this file as Public Domain Software.
  7.         Copy,Edit,Re-distibute and for any purpose,you can use this file.
  8.  
  9. */
  10. #include "zip32j.h"
  11. #include <stdio.h>
  12. #include <direct.h>
  13. int main(int argc,char *argv[])
  14. {
  15.     int v;
  16.     int ret;
  17.     char output[10001];
  18.     char input[10001]="";
  19.     int i;
  20.  
  21.     for(i=1;i<argc;i++){
  22.         strcat(input,argv[i]);
  23.         strcat(input," ");
  24.     }
  25.     v=ZipGetVersion();
  26.     chdir("c:\\tmp\\zip");
  27.     //printf("ZipGetVersion()=%d\n",v);
  28.     //ret=Zip(NULL,"-r c:\\tmp\\zip\\z1.zip c:\\tmp\\zip\\data1.txt c:\\tmp\\zip\\data2.txt",output,10000);
  29.     //ret=Zip(NULL,"c:\\tmp\\zip\\z1.zip c:\\tmp\\zip\\data1.txt c:\\tmp\\zip\\data2.txt",output,10000);
  30.     //ret=Zip(NULL,"c:\\tmp\\zip\\z1.zip c:\\tmp\\zip\\ @c:\\tmp\\zip\\res tmp",output,10000);
  31.     //ret=Zip(NULL,"c:\\tmp\\zip\\z1.zip C:\\tmp\\ZIP\\あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん",output,10000);
  32.     //ret=Zip(NULL,"-R z tmp",output,10000);
  33.     ret=Zip(NULL,input,output,10000);
  34.     return 0;
  35. }
  36.