Lines Matching refs:timeptr
62 asctime3(const struct tm *timeptr, char *buf, int bufsize) in asctime3() argument
76 if (timeptr == NULL) { in asctime3()
81 if (timeptr->tm_wday < 0 || timeptr->tm_wday >= DAYSPERWEEK) in asctime3()
84 wn = wday_name[timeptr->tm_wday]; in asctime3()
85 if (timeptr->tm_mon < 0 || timeptr->tm_mon >= MONSPERYEAR) in asctime3()
88 mn = mon_name[timeptr->tm_mon]; in asctime3()
95 (void) strftime(year, sizeof year, "%Y", timeptr); in asctime3()
99 timeptr->tm_mday, timeptr->tm_hour, in asctime3()
100 timeptr->tm_min, timeptr->tm_sec, in asctime3()
115 asctime_r(const struct tm *timeptr, char *buf) in asctime_r() argument
121 return asctime3(timeptr, buf, STD_ASCTIME_BUF_SIZE); in asctime_r()
130 asctime(const struct tm *timeptr) in asctime() argument
139 return asctime3(timeptr, resultp, sizeof(result)); in asctime()