Format the time into a wide-character string
#include <wchar.h> size_t wcsftime( wchar_t * wcs, size_t maxsize, const wchar_t * format, const struct tm * timeptr );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The wcsftime() function is similar to strftime(), except that wcsftime() works with wide characters.
The number of wide characters placed into the array, not including the terminating null character, or 0 if the number of wide characters exceeds maxsize (in this case, the string contents are indeterminate).
If an error occurs, errno is set.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
asctime(), asctime_r(), ctime(), ctime_r(), sprintf(), strftime(), tm, tzset()