wmemset()

Set wide characters in memory

Synopsis:

#include <wchar.h>

wchar_t * wmemset( wchar_t * ws,
                   wchar_t wc,
                   size_t n );

Arguments:

ws
A pointer to the memory that you want to set.
wc
The value that you want to store in each wide character.
length
The number of wide characters to set.

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

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.

Returns:

A pointer to the destination buffer (i.e., the same pointer as ws).

Classification:

ANSI, POSIX 1003.1

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