home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 2 / 2032 / anne.h next >
C/C++ Source or Header  |  1990-12-28  |  2KB  |  64 lines

  1. /*
  2.  * anne.h - for anne.jones.c
  3.  */
  4.  
  5. #define    HAVESTRSTR        /* have the strstr() function? */
  6. #ifndef HAVESTRSTR
  7. char *strstr();
  8. #endif /* !HAVESTRSTR */
  9. #define HAVEGETHOSTNAME        /* have the gethostname() function? */
  10. #undef    NOLINEBUF        /* fprintf() doesn't flush stdout() */
  11.  
  12. /* you're done */
  13.  
  14. #define    MAXLINE        1000    /* maximum line length to be read in */
  15. #define    MAXHEAD        30    /* maximum length from ^ to : of header */
  16. #define    NUMHEADERS    50    /* max # of headers expected */
  17. #define    NAMESIZE    30    /* size of mailname */
  18.  
  19. #define    ORDER        5    /* the range from 1-n that *HAVE* to be in */
  20. #define    NUMKNOWN    10    /* how many we already know */
  21. #define    KNOWSTART    1    /* # the below starts at */
  22. #define    MSGIDLEN    60    /* length of message id string, with <>'s */
  23. #define    DATELEN        30    /* length of date string */
  24. #define    ORGLEN        80    /* length of organization's name */
  25.  
  26. #define    CTLNAMEPOS    1
  27. #define    NGNAMEPOS    2
  28. #define    PATHNAMEPOS    3
  29. #define    FROMPOS        4
  30. #define    SUBJECTPOS    5
  31. #define    MSGIDPOS    6
  32. #define    DATEPOS        7
  33. #define    ORGPOS        8
  34. #define    DISTPOS        9
  35. #define    SENDERPOS    10
  36.  
  37. /* these aren't used yet */
  38. #define    CTLNAME        "Control:"
  39. #define    NGNAME        "Newsgroups:"
  40. #define    PATHNAME    "Path:"
  41. #define    FROMNAME    "From:"
  42. #define    SUBJECTHDR    "Subject:"
  43. #define    MSGIDNAME    "Message-ID:"
  44. #define    TYPONAME    "Message-Id:"
  45. #define    DATENAME    "Date:"
  46. #define    ORGNAME        "Organization:"
  47. #define    DISTRNAME    "Distribution:"
  48. #define    SENDERNAME    "Sender:"
  49.  
  50. #define    NOTFOUND    -1
  51. #define    NOTKNOWN    -1
  52.  
  53. static char *allheads="\
  54. Control:.....\
  55. Newsgroups:..\
  56. Path:........\
  57. From:........\
  58. Subject:.....\
  59. Message-ID:..\
  60. Date:........\
  61. Organization:\
  62. Distribution:\
  63. Sender:......";
  64.