OSDN Git Service

LDP: Update original to LDP v3.79
[linuxjm/LDP_man-pages.git] / original / man3 / fputws.3
1 .\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
2 .\"
3 .\" %%%LICENSE_START(GPLv2+_DOC_ONEPARA)
4 .\" This is free documentation; you can redistribute it and/or
5 .\" modify it under the terms of the GNU General Public License as
6 .\" published by the Free Software Foundation; either version 2 of
7 .\" the License, or (at your option) any later version.
8 .\" %%%LICENSE_END
9 .\"
10 .\" References consulted:
11 .\"   GNU glibc-2 source code and manual
12 .\"   Dinkumware C library reference http://www.dinkumware.com/
13 .\"   OpenGroup's Single UNIX specification http://www.UNIX-systems.org/online.html
14 .\"   ISO/IEC 9899:1999
15 .\"
16 .TH FPUTWS 3  2011-09-28 "GNU" "Linux Programmer's Manual"
17 .SH NAME
18 fputws \- write a wide-character string to a FILE stream
19 .SH SYNOPSIS
20 .nf
21 .B #include <wchar.h>
22 .sp
23 .BI "int fputws(const wchar_t *" ws ", FILE *" stream );
24 .fi
25 .SH DESCRIPTION
26 The
27 .BR fputws ()
28 function is the wide-character equivalent of
29 the
30 .BR fputs (3)
31 function.
32 It writes the wide-character string starting at \fIws\fP, up to but
33 not including the terminating null wide character (L\(aq\\0\(aq), to \fIstream\fP.
34 .PP
35 For a nonlocking counterpart, see
36 .BR unlocked_stdio (3).
37 .SH RETURN VALUE
38 The
39 .BR fputws ()
40 function returns a
41 nonnegative integer if the operation was
42 successful, or \-1 to indicate an error.
43 .SH CONFORMING TO
44 C99, POSIX.1-2001.
45 .SH NOTES
46 The behavior of
47 .BR fputws ()
48 depends on the
49 .B LC_CTYPE
50 category of the
51 current locale.
52 .PP
53 In the absence of additional information passed to the
54 .BR fopen (3)
55 call, it is
56 reasonable to expect that
57 .BR fputws ()
58 will actually write the multibyte
59 string corresponding to the wide-character string \fIws\fP.
60 .SH SEE ALSO
61 .BR fputwc (3),
62 .BR unlocked_stdio (3)
63 .SH COLOPHON
64 This page is part of release 3.79 of the Linux
65 .I man-pages
66 project.
67 A description of the project,
68 information about reporting bugs,
69 and the latest version of this page,
70 can be found at
71 \%http://www.kernel.org/doc/man\-pages/.