1wmemset(3) Library Functions Manual wmemset(3)
2
3
4
6 wmemset - fill an array of wide-characters with a constant wide charac‐
7 ter
8
10 Standard C library (libc, -lc)
11
13 #include <wchar.h>
14
15 wchar_t *wmemset(wchar_t wcs[.n], wchar_t wc, size_t n);
16
18 The wmemset() function is the wide-character equivalent of the mem‐
19 set(3) function. It fills the array of n wide-characters starting at
20 wcs with n copies of the wide character wc.
21
23 wmemset() returns wcs.
24
26 For an explanation of the terms used in this section, see at‐
27 tributes(7).
28
29 ┌────────────────────────────────────────────┬───────────────┬─────────┐
30 │Interface │ Attribute │ Value │
31 ├────────────────────────────────────────────┼───────────────┼─────────┤
32 │wmemset() │ Thread safety │ MT-Safe │
33 └────────────────────────────────────────────┴───────────────┴─────────┘
34
36 C11, POSIX.1-2008.
37
39 POSIX.1-2001, C99.
40
42 memset(3)
43
44
45
46Linux man-pages 6.04 2023-03-30 wmemset(3)