[Previous] [Contents] [Index] [Next]

wmemset()

Set wide characters in memory

Synopsis:

#include <wchar.h>

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

Library:

libc

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 ws.

Classification:

ANSI

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

See also:

"Memory manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Index] [Next]