home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / trn_12.zip / src / artio.h < prev    next >
C/C++ Source or Header  |  1991-12-04  |  2KB  |  44 lines

  1. /* $Id: artio.h,v 4.4 1991/09/09 20:18:23 sob Exp sob $
  2.  *
  3.  * $Log: artio.h,v $
  4.  * Revision 4.4  1991/09/09  20:18:23  sob
  5.  * release 4.4
  6.  *
  7.  *
  8.  * 
  9.  */
  10. /* This software is Copyright 1991 by Stan Barber. 
  11.  *
  12.  * Permission is hereby granted to copy, reproduce, redistribute or otherwise
  13.  * use this software as long as: there is no monetary profit gained
  14.  * specifically from the use or reproduction of this software, it is not
  15.  * sold, rented, traded or otherwise marketed, and this copyright notice is
  16.  * included prominently in any copy made. 
  17.  *
  18.  * The author make no claims as to the fitness or correctness of this software
  19.  * for any use whatsoever, and it is provided as is. Any use of this software
  20.  * is at the user's own risk. 
  21.  */
  22.  
  23. EXT ART_POS artpos INIT(0);    /* byte position in article file */
  24.  
  25. EXT ART_LINE artline INIT(0);        /* current line number in article file */
  26. EXT FILE *artfp INIT(Nullfp);        /* current article file pointer */
  27. EXT ART_NUM openart INIT(0);        /* what is the currently open article number? */
  28. #ifdef LINKART
  29.     EXT char *linkartname INIT(nullstr);/* real name of article for Eunice */
  30. #endif
  31. #ifdef SERVER
  32. EXT ART_PART openpart INIT(0);    /* how much of that article do we have? */
  33. FILE    *nntpopen ANSI((ART_NUM,ART_PART));
  34.                 /* get an article unless already retrieved */
  35. void    nntpclose ANSI((void));
  36. /* MUST be in increasing order of completeness! */
  37. #define GET_STATUS    1        /* test for existence only */
  38. #define GET_HEADER    2        /* if only header items are desired */
  39. #define GET_ARTICLE    3        /* retreive full article  */
  40. #endif
  41.  
  42. void    artio_init ANSI((void));
  43. FILE    *artopen ANSI((ART_NUM));  /* open an article unless already opened */
  44.