[Previous] [Contents] [Next]

wcsftime()

Format the time into a string

Synopsis:

#include <wchar.h>

size_t wcsftime( wchar_t * wcs,
                 size_t maxsize,
                 const wchar_t * format,
                 const struct tm * timeptr );

Library:

libc

Description:

The wcsftime() function is equivalent to strftime() except that characters refers to wide characters. See strftime() for a complete list of conversion specifiers.

Returns:

0
The number of characters (or wide characters) exceeds maxsize; the string contents are indeterminate.
x
The number of characters (or wide characters) placed into the array, not including the terminating NUL character.

When an error has occurred, errno indicates the type of error detected.

Classification:

ANSI

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

strftime(), tm

"String manipulation functions," "Time functions," and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]