3 * Original Author: G. Haley
5 * Converts the broken down time in the structure pointed to by tim_p into a
8 * Wed Jun 15 11:38:07 1988\n\0
10 * Returns a pointer to the string.
15 <<asctime>>---format time as string
24 char *asctime(const struct tm *<[clock]>);
25 char *_asctime_r(const struct tm *<[clock]>, char *<[buf]>);
28 Format the time value at <[clock]> into a string of the form
29 . Wed Jun 15 11:38:07 1988\n\0
30 The string is generated in a static buffer; each call to <<asctime>>
31 overwrites the string generated by previous calls.
34 A pointer to the string containing a formatted timestamp.
37 ANSI C requires <<asctime>>.
39 <<asctime>> requires no supporting OS subroutines.
48 #ifdef _REENT_THREAD_LOCAL
49 _Thread_local
char _tls_asctime_buf
[_REENT_ASCTIME_SIZE
];
55 asctime (const struct tm
*tim_p
)
57 struct _reent
*reent
= _REENT
;
59 _REENT_CHECK_ASCTIME_BUF(reent
);
60 return asctime_r (tim_p
, _REENT_ASCTIME_BUF(reent
));