home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / OFFLINE / UQWK18.ZIP / UQWK18.TAR / uqwk.c < prev    next >
C/C++ Source or Header  |  1993-11-10  |  629b  |  43 lines

  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. #define ALLOCATE
  5. #include "uqwk.h"
  6.  
  7. /*
  8.  *  Try to make QWK packets from a mail and/or news spool
  9.  */
  10.  
  11. main (argc, argv)
  12. int argc;
  13. char *argv[];
  14. {
  15.     progname = argv[0];
  16.  
  17.     /* Set up defaults */
  18.     DefaultOptions();
  19.  
  20.     /* Look for environment variable overrides */
  21.     EnvOptions();
  22.  
  23.     /* Look for command line overrides */
  24.     CommandOptions (argc, argv);
  25.  
  26.     /* Initialize files, etc. */
  27.     InitStuff();
  28.  
  29.     /* Do reply packet? */
  30.     if (strcmp (rep_file, DEF_REP_FILE)) DoReply();
  31.  
  32.     /* Do news? */
  33.     if (do_news) DoNews();
  34.  
  35.     /* Mail? */
  36.     if (do_mail) DoMail();
  37.  
  38.     /* All done */
  39.     CloseStuff();
  40.  
  41.     return (0);
  42. }
  43.