asctime_r()

Thread-safe conversion of a tm structure to a character array.

  #include <extras/extras_time.h> 
  char * asctime_r(const struct tm * t, char * s);   
Parameter

t

A pointer to a tm structure describing the time and date to convert.

s

A pointer to a character string array in which to store the result.

Remarks

This function provides a reentrant version of the asctime() function. Unlike asctime(), this function requires that the caller provides storage for the string in which to store the textual representation of the date described by t. The size of this character array must be at least 26 characters.

The asctime_r() function always returns the value of s.

This function may require extra library support.

This facility is not specified in the ISO/IEC standards. It is an EWL extension of the standard libraries.

This facility may not be available on some configurations of the EWL.