/* * QUITDNET.C * * DNET (c)Copyright 1988, Matthew Dillon, All Rights Reserved. * * QUITDNET [-Nnet] * */ #include "defs.h" void main ARGS((int, char **)); int brk() { return(0); } void main(ac,av) char *av[]; { int ok; char *host = NULL; onbreak(brk); printf("QuitDNet V%s%s\n", VERSION, QUITDNET_VERSION); { 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) { Delay(50 * 5); DBreak(host); } else puts("DNET master port for network not found"); }