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