|
|
1.1 ! root 1: #ifndef __TIME ! 2: #define __TIME ! 3: ! 4: #define CLOCKS_PER_SEC 1000000 ! 5: #define NULL 0 ! 6: ! 7: #if !defined(_CLOCK_T) && !defined(_CLOCK_T_) ! 8: #define _CLOCK_T ! 9: #define _CLOCK_T_ ! 10: typedef long clock_t; ! 11: #endif ! 12: ! 13: #if !defined(_TIME_T) && !defined(_TIME_T_) ! 14: #define _TIME_T ! 15: #define _TIME_T_ ! 16: typedef long time_t; ! 17: #endif ! 18: ! 19: #if !defined(_SIZE_T) && !defined(_SIZE_T_) ! 20: #define _SIZE_T ! 21: #define _SIZE_T_ ! 22: typedef unsigned 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: extern clock_t clock(void); ! 37: extern double difftime(time_t, time_t); ! 38: extern time_t mktime(struct tm *); ! 39: extern time_t time(time_t *); ! 40: extern char *asctime(const struct tm *); ! 41: extern char *ctime(const time_t *); ! 42: extern struct tm *gmtime(const time_t *); ! 43: extern struct tm *localtime(const time_t *); ! 44: extern size_t strftime(char *, size_t, const char *, const struct tm *); ! 45: ! 46: #endif /* __TIME */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.