home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 May / macformat-024.iso / Shareware City / Developers / kvik / src / timea.h < prev   
Encoding:
C/C++ Source or Header  |  1994-11-21  |  1.1 KB  |  64 lines  |  [TEXT/MPCC]

  1. /* This is the Metrowerks time.h hacked up to get rid of some annoying multiple typedefs. */
  2.  
  3. /* time.h standard header */
  4. #ifndef _TIME
  5. #define _TIME
  6. #ifndef _YVALS
  7. #include <yvals.h>
  8. #endif
  9.  
  10. #if __MWERKS__
  11. #pragma options align=mac68k
  12. #endif
  13.  
  14.         /* macros */
  15. #ifndef NULL
  16. #define NULL    _NULL
  17. #endif
  18. #define CLOCKS_PER_SEC    _CPS
  19.         /* type definitions */
  20. #ifndef _SIZET
  21. #define _SIZET
  22. typedef _Sizet size_t;
  23. #endif
  24.  
  25. struct tm {
  26.     int tm_sec;
  27.     int tm_min;
  28.     int tm_hour;
  29.     int tm_mday;
  30.     int tm_mon;
  31.     int tm_year;
  32.     int tm_wday;
  33.     int tm_yday;
  34.     int tm_isdst;
  35.     };
  36.  
  37. _EXTERN_C    /* low-level functions */
  38. time_t time(time_t *);
  39. _END_EXTERN_C
  40.  
  41. _C_LIB_DECL    /* declarations */
  42. char *asctime(const struct tm *);
  43. clock_t clock(void);
  44. char *ctime(const time_t *);
  45. double difftime(time_t, time_t);
  46. struct tm *gmtime(const time_t *);
  47. struct tm *localtime(const time_t *);
  48. time_t mktime(struct tm *);
  49. size_t strftime(char *, size_t, const char *,
  50.     const struct tm *);
  51. _END_C_LIB_DECL
  52.  
  53. #if __MWERKS__
  54. #pragma options align=reset
  55. #endif
  56.  
  57. #endif
  58.  
  59. /*
  60.  * Copyright (c) 1994 by P.J. Plauger.  ALL RIGHTS RESERVED. 
  61.  * Consult your license regarding permissions and restrictions.
  62.  */
  63.  
  64.