home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip201.zip / zipcloak.c < prev    next >
C/C++ Source or Header  |  1993-09-10  |  850b  |  33 lines

  1. /*
  2.    Dummy version of Info-ZIP zipcloak.c encryption code.  See "Where"
  3.    file for sites from which to obtain full encryption sources.
  4.  */
  5.  
  6. #include "tailor.h"
  7.  
  8. void warn  OF((char *msg1, char *msg2));
  9. void err   OF((int code, char *msg));
  10. int  main  OF((void));
  11.  
  12. void warn(msg1, msg2)
  13.     char *msg1, *msg2;        /* message strings juxtaposed in output */
  14. {
  15.     fprintf(stderr, "zipcloak warning: %s%s\n", msg1, msg2);
  16. }
  17.  
  18. void err(code, msg)
  19.     int code;               /* error code from the ZE_ class */
  20.     char *msg;              /* message about how it happened */
  21. {
  22.     if (code) warn(msg, "");
  23. }
  24.  
  25. int main()
  26. {
  27.     fprintf(stderr, "\
  28. This version of ZipCloak does not support encryption.  Get zcrypt20.zip (or\n\
  29. a later version) and recompile.  The Info-ZIP file `Where' lists sites.\n");
  30.     exit(1);
  31.     return 1; /* avoid warning */
  32. }
  33.