Updated: October 28, 2024 |
Set wide characters in memory
#include <wchar.h> wchar_t * wmemset( wchar_t * ws, wchar_t wc, size_t n );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The memset() function fills n wide characters starting at ws with the value wc.
The wmemset() function is locale-independent and treats all wchar_t values identically, even if they're null or invalid wide characters.
A pointer to the destination buffer (i.e., the same pointer as ws).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |