1WMEMSET(3) Linux Programmer's Manual WMEMSET(3)
2
3
4
6 wmemset - fill an array of wide-characters with a constant wide charac‐
7 ter
8
10 #include <wchar.h>
11
12 wchar_t *wmemset(wchar_t *wcs, wchar_t wc, size_t n);
13
15 The wmemset() function is the wide-character equivalent of the mem‐
16 set(3) function. It fills the array of n wide-characters starting at
17 wcs with n copies of the wide character wc.
18
20 wmemset() returns wcs.
21
23 For an explanation of the terms used in this section, see at‐
24 tributes(7).
25
26 ┌────────────────────────────────────────────┬───────────────┬─────────┐
27 │Interface │ Attribute │ Value │
28 ├────────────────────────────────────────────┼───────────────┼─────────┤
29 │wmemset() │ Thread safety │ MT-Safe │
30 └────────────────────────────────────────────┴───────────────┴─────────┘
31
33 POSIX.1-2001, POSIX.1-2008, C99.
34
36 memset(3)
37
39 This page is part of release 5.12 of the Linux man-pages project. A
40 description of the project, information about reporting bugs, and the
41 latest version of this page, can be found at
42 https://www.kernel.org/doc/man-pages/.
43
44
45
46GNU 2021-03-22 WMEMSET(3)