Exemple #1
0
/* Returns a string of the form "Day Mon dd hh:mm:ss yyyy\n"
   which is the representation of TP in that form.  */
char *
asctime (const struct tm *tp)
{
  return __asctime_r (tp, result);
}
Exemple #2
0
/* Return a string as returned by asctime which is the representation
   of *T in that form.  Reentrant version.  */
char *
ctime_r (const time_t *t, char *buf)
{
  struct tm tm;
  return __asctime_r (__localtime_r (t, &tm), buf);
}