home *** CD-ROM | disk | FTP | other *** search
/ Il CD di internet / CD.iso / SOURCE / N / TCPIP / NNTP-1.000 / NNTP-1 / nntp.1.5.11t / server / help.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-01-31  |  1017 b   |  38 lines

  1. #ifndef lint
  2. static char    *sccsid = "@(#)$Header: help.c,v 1.8 90/01/15 23:18:58 sob Exp $";
  3. #endif
  4.  
  5. #include "common.h"
  6.  
  7. /*
  8.  * HELP
  9.  *
  10.  * Provide a naive user with a brief help message.
  11.  *
  12.  */
  13.  
  14. help(argc, argv)
  15. int    argc;
  16. char    *argv[];
  17. {
  18.     printf("%d This server accepts the following commands:\r\n", INF_HELP);
  19.     printf("ARTICLE     BODY         GROUP\r\n");
  20.     printf("HEAD        LAST         LIST\r\n");
  21.     printf("NEXT        POST         QUIT\r\n");
  22.     printf("STAT        NEWGROUPS    HELP\r\n");
  23.     printf("IHAVE       NEWNEWS      SLAVE\r\n");
  24. #if defined(XHDR) || defined(XTHREAD)
  25.     printf("\r\nAdditionally, the following extentions are supported:\r\n\r\n");
  26. # ifdef    XHDR
  27.     printf("XHDR        Retrieve a single header line from a range of articles.\r\n");
  28. # endif    XHDR
  29. # ifdef    XTHREAD
  30.     printf("XTHREAD     Retrieve trn thread file for the current group.\r\n");
  31. # endif
  32. #endif
  33.     printf("\r\n");
  34.     printf("Bugs to Stan Barber (Internet: nntp@tmc.edu; UUCP: ...!bcm!nntp)\r\n");
  35.     printf(".\r\n");
  36.     (void) fflush(stdout);
  37. }
  38.