home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 291.lha / CcLib_v1.2 / include / time.h < prev   
C/C++ Source or Header  |  1989-10-07  |  765b  |  51 lines

  1. #ifndef TIME_H
  2. #define TIME_H 1
  3.  
  4.  
  5. struct tm
  6. {
  7. short tm_sec;
  8. short tm_min;
  9. short tm_hour;
  10. short tm_mday;
  11. short tm_mon;
  12. short tm_year;
  13. short tm_wday;
  14. short tm_yday;
  15. short tm_isdst;
  16. short tm_hsec;
  17. };
  18.  
  19. #ifndef STDIO_H
  20. #include "stdio.h"
  21. #endif
  22.  
  23. typedef long time_t;
  24. typedef long clock_t;
  25. #define CLK_TCK 1
  26.  
  27. #ifdef ANSIC
  28. clock_t clock(void);
  29. time_t time(time_t *);
  30. long difftime(time_t,time_t);
  31. time_t mktime(struct tm *);
  32. char *asctime(struct tm *);
  33. char *ctime(time_t *);
  34. struct tm *gmtime(time_t *);
  35. struct tm *localtime(time_t *);
  36. size_t strftime(char *,size_t,char *,struct tm *);
  37. #else
  38. clock_t clock();
  39. time_t time();
  40. long difftime();
  41. time_t mktime();
  42. char *asctime();
  43. char *ctime();
  44. struct tm *gmtime();
  45. struct tm *localtime();
  46. size_t strftime();
  47. #endif
  48.  
  49. #endif
  50.  
  51.