home *** CD-ROM | disk | FTP | other *** search
- #include <time.h>
-
- #define ID_TEMP 10 /* ID with a time stamp below the are not saved */
- #define ID_DEAD 0 /* This time stamp value mean this ID does not exist */
-
- typedef struct idhist_str *idhistory;
-
- idhistory idhist_init(int size);
- int idhist_addid(idhistory hist, char *id, time_t t);
- int idhist_checkid(idhistory hist, char *id);
- char *idhist_msgid(idhistory hist, int id, char *buf);
- void idhist_stamp(idhistory hist, int id, time_t t);
- void idhist_clean(idhistory hist);
- int idhist_save(idhistory hist, char *file, int maxage);
- void idhist_kill(idhistory hist);
- idhistory idhist_load(char *file);
- char *idhist_trimstr(char *s);
- int idhist_numids(idhistory hist);
-
- time_t time_aton(char *s);
- char *time_ntoa(char *buf, time_t t);
- time_t time_readgmt(void);
- void time_timetoordinals(time_t t, struct tm *tp);
- time_t time_ordinalstotime(struct tm *tp);
-