home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 239.lha / amiga / src / client / quitdnet.c < prev    next >
Encoding:
C/C++ Source or Header  |  1989-05-02  |  569 b   |  36 lines

  1.  
  2. /*
  3.  *  QUITDNET.C
  4.  *
  5.  *  DNET (c)Copyright 1988, Matthew Dillon, All Rights Reserved.
  6.  *
  7.  *  QUITDNET [-Nnet]
  8.  *
  9.  */
  10.  
  11. #include "/version.h"
  12.  
  13. main(ac,av)
  14. char *av[];
  15. {
  16.     int ok;
  17.     char *host = NULL;
  18.  
  19.     printf("QuitDNet V%s%s\n", VERSION, QUITDNET_VERSION);
  20.     {
  21.     register short i;
  22.     for (i = 1; i < ac; ++i) {
  23.         if (strncmp(av[i], "-N", 2) == 0) {
  24.         host = av[i] + 2;
  25.         continue;
  26.         }
  27.     }
  28.     }
  29.     ok = DQuit(host);   /*  NULL ok */
  30.     if (ok)
  31.     puts("success, remote end should quit in a sec.");
  32.     else
  33.     puts("DNET master port for network not found");
  34. }
  35.  
  36.