home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2001 January / VPR0101A.BIN / OLS / TAR32053 / tar32053.exe / SRC / MAINMAIN.C < prev    next >
C/C++ Source or Header  |  1999-05-23  |  772b  |  34 lines

  1. /*
  2.   This file is for test.
  3.   This file need not add to TAR32.DLL Project.
  4. */
  5.  
  6.  
  7. /* mainmain.c */
  8. #include "defconf.h"
  9.  
  10. #ifdef DLL
  11. #include <wtypes.h>
  12. #include <time.h>
  13. #include "tar32.h"
  14. extern int tar_main(int argc, char *argv[]);/* main.c */
  15.  
  16. int main(int argc, char *argv[])
  17. {
  18. /* #undef DLL_TEST */
  19. #ifdef DLL_TEST
  20.     char buf[1000];
  21.     int r;
  22.  
  23.     //r=Tar(NULL,"aiueo",buf,1000);
  24.     r=Tar(NULL,"-zcvf c:\\tmp\\tar\\aa3.tgz c:\\tmp\\tar\\ test\\*.*",buf,1000);
  25.     //Tar(NULL,"-rvf c:\\tmp\\test\\test\\test1.tar c:/tmp/test/test/test1.txt",buf,1000);
  26.     //r=Tar(NULL,"-zcvf c:\\tmp\\hosts.tgz c:\\tmp\\hosts",buf,1000);
  27.     //r=Tar(NULL,"-zcvf c:\\tmp\\hosts.tgz c:\\tmp\\hosts",buf,1000);
  28.     return r;
  29. #else
  30.     return tar_main(argc,argv);
  31. #endif
  32. }
  33. #endif
  34.