Debian Codegraph @

upstream/debian-unstable/man3/wmemset.3

raw
1 '\" t
2 .\" Copyright, Bruno Haible <[email protected]>
3 .\" Copyright, the authors of the Linux man-pages project
4 .\"
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .\"
7 .TH wmemset 3 2026-02-08 "Linux man-pages 6.18"
8 .SH NAME
9 wmemset \- fill an array of wide-characters with a constant wide character
10 .SH LIBRARY
11 Standard C library
12 .RI ( libc ,\~ \-lc )
13 .SH SYNOPSIS
14 .nf
15 .B #include <wchar.h>
16 .P
17 .BR "wchar_t *wmemset(" "size_t n;"
18 .BI " wchar_t " wcs [ n "], wchar_t " wc ", size_t " n );
19 .fi
20 .SH DESCRIPTION
21 The
22 .BR wmemset ()
23 function is the wide-character equivalent of the
24 .BR memset (3)
25 function.
26 It fills the array of
27 .I n
28 wide-characters starting at
29 .I wcs
30 with
31 .I n
32 copies of the wide character
33 .IR wc .
34 .SH RETURN VALUE
35 .BR wmemset ()
36 returns
37 .IR wcs .
38 .SH ATTRIBUTES
39 For an explanation of the terms used in this section, see
40 .BR attributes (7).
41 .TS
42 allbox;
43 lbx lb lb
44 l l l.
45 Interface Attribute Value
46 T{
47 .na
48 .nh
49 .BR wmemset ()
50 T} Thread safety MT-Safe
51 .TE
52 .SH STANDARDS
53 C11, POSIX.1-2008.
54 .SH HISTORY
55 POSIX.1-2001, C99.
56 .SH SEE ALSO
57 .BR memset (3)