WMEMSET(3) NEWLIB WMEMSET(3)NAME
7.5 `wmemset'--set wide characters in memory
SYNOPSIS
#include <wchar.h>
wchar_t *wmemset(wchar_t *S, wchar_t C, size_t N);
DESCRIPTION
The `wmemset' function copies the value of C into each of the first N
wide characters of the object pointed to by S. This function is not
affected by locale and all wchar_t values are treated identically. The
null wide character and wchar_t values not corresponding to valid char‐
acters are not treated specially.
If N is zero, S must be a valid pointer and the function copies zero
wide characters.
RETURNS
The `wmemset' function returns the value of S.
PORTABILITY
`wmemset' is ISO/IEC 9899/AMD1:1995 (ISO C).
No supporting OS subroutines are required.
SEE ALSOwmemset is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 WMEMSET(3)