Debian Codegraph @

upstream/debian-trixie/man3/wmemset.3

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