home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / internet / tcpip / src205 / TCPIP_Src / NNTP / h / idhist
Encoding:
Text File  |  1995-03-12  |  859 b   |  25 lines

  1. #include <time.h>
  2.  
  3. #define ID_TEMP 10 /* ID with a time stamp below the are not saved */
  4. #define ID_DEAD  0 /* This time stamp value mean this ID does not exist */
  5.  
  6. typedef struct idhist_str *idhistory;
  7.  
  8. idhistory idhist_init(int size);
  9. int idhist_addid(idhistory hist, char *id, time_t t);
  10. int idhist_checkid(idhistory hist, char *id);
  11. char *idhist_msgid(idhistory hist, int id, char *buf);
  12. void idhist_stamp(idhistory hist, int id, time_t t);
  13. void idhist_clean(idhistory hist);
  14. int idhist_save(idhistory hist, char *file, int maxage);
  15. void idhist_kill(idhistory hist);
  16. idhistory idhist_load(char *file);
  17. char *idhist_trimstr(char *s);
  18. int idhist_numids(idhistory hist);
  19.  
  20. time_t time_aton(char *s);
  21. char *time_ntoa(char *buf, time_t t);
  22. time_t time_readgmt(void);
  23. void time_timetoordinals(time_t t, struct tm *tp);
  24. time_t time_ordinalstotime(struct tm *tp);
  25.