home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * QUITDNET.C
- *
- * DNET (c)Copyright 1988, Matthew Dillon, All Rights Reserved.
- *
- * QUITDNET [-Nnet]
- *
- */
-
- main(ac,av)
- char *av[];
- {
- int ok;
- char *host = NULL;
- {
- register short i;
- for (i = 1; i < ac; ++i) {
- if (strncmp(av[i], "-N", 2) == 0) {
- host = av[i] + 2;
- continue;
- }
- }
- }
- ok = DQuit(host); /* NULL ok */
- if (ok)
- puts("success, remote end should quit in a sec.");
- else
- puts("DNET master port for network not found");
- }
-
-