home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / c / cuj9301.zip / 1101014A < prev    next >
Text File  |  1992-11-09  |  822b  |  41 lines

  1. /* time.h standard header */
  2. #ifndef _TIME
  3. #define _TIME
  4. #ifndef _YVALS
  5. #include <yvals.h>
  6. #endif
  7.         /* macros */
  8. #define NULL    _NULL
  9. #define CLOCKS_PER_SEC    _CPS
  10.         /* type definitions */
  11. #ifndef _SIZET
  12. #define _SIZET
  13. typedef _Sizet size_t;
  14. #endif
  15. typedef unsigned int clock_t;
  16. typedef unsigned long time_t;
  17. struct tm {
  18.     int tm_sec;
  19.     int tm_min;
  20.     int tm_hour;
  21.     int tm_mday;
  22.     int tm_mon;
  23.     int tm_year;
  24.     int tm_wday;
  25.     int tm_yday;
  26.     int tm_isdst;
  27.     };
  28.         /* declarations */
  29. char *asctime(const struct tm *);
  30. clock_t clock(void);
  31. char *ctime(const time_t *);
  32. double difftime(time_t, time_t);
  33. struct tm *gmtime(const time_t *);
  34. struct tm *localtime(const time_t *);
  35. time_t mktime(struct tm *);
  36. size_t strftime(char *, size_t, const char *,
  37.     const struct tm *);
  38. time_t time(time_t *);
  39. #endif
  40.  
  41.