home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / b / bmh02src.zip / CURRENT.H < prev    next >
C/C++ Source or Header  |  1992-08-16  |  804b  |  43 lines

  1. /* 
  2.    current.h : Copyright Paul Healy, EI9GL, 1992.
  3.  
  4.    920706 : Created.
  5. */
  6. #ifndef _current_h_
  7. #define _current_h_
  8.  
  9. /*
  10.  * Set/return the current folder
  11.  */
  12. char *currentfolder(char *f);
  13.  
  14. /*
  15.  * Set/return the current message number
  16.  */
  17. int currentmsg(int *msg);
  18.  
  19. /*
  20.  * Short hand for calling both of the above
  21.  */
  22. int setcurrent(char *folder, int curmsg);
  23.  
  24. /*
  25.  * Return the current folder in news type notation
  26.  */
  27. char *newsfile(void);
  28.  
  29. /*
  30.  * Get current folder/msg # (optionally set both with command line arguments)
  31.  */
  32. int getcurrent(int argc, char *argv[], char **folder, int *curmsg);
  33.  
  34. /*
  35.  * Make the last message in a list or range the current message
  36.  */
  37. int lastmsg(int argc, char *argv[]);
  38.  
  39. char *dir2news(char *s);
  40. char *news2dir(char *s);
  41.  
  42. #endif
  43.