~ubuntu-branches/ubuntu/precise/manpages-posix/precise

1 by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages.
1
.\" Copyright (c) 2001-2003 The Open Group, All Rights Reserved 
2 by Francesco Paolo Lovergine
* Alligned to linux main manpages edition.
2
.TH "PUTWC" P 2003 "IEEE/The Open Group" "POSIX Programmer's Manual"
1 by Francesco Paolo Lovergine
rules: linking manpages-posix not manpages.
3
.\" putwc 
4
.SH NAME
5
putwc \- put a wide character on a stream
6
.SH SYNOPSIS
7
.LP
8
\fB#include <stdio.h>
9
.br
10
#include <wchar.h>
11
.br
12
.sp
13
wint_t putwc(wchar_t\fP \fIwc\fP\fB, FILE *\fP\fIstream\fP\fB);
14
.br
15
\fP
16
.SH DESCRIPTION
17
.LP
18
The \fIputwc\fP() function shall be equivalent to \fIfputwc\fP(),
19
except that if it is
20
implemented as a macro it may evaluate \fIstream\fP more than once,
21
so the argument should never be an expression with side
22
effects.
23
.SH RETURN VALUE
24
.LP
25
Refer to \fIfputwc\fP() .
26
.SH ERRORS
27
.LP
28
Refer to \fIfputwc\fP() .
29
.LP
30
\fIThe following sections are informative.\fP
31
.SH EXAMPLES
32
.LP
33
None.
34
.SH APPLICATION USAGE
35
.LP
36
Since it may be implemented as a macro, \fIputwc\fP() may treat a
37
\fIstream\fP argument with side effects incorrectly. In
38
particular, \fIputwc\fP(\fIwc\fP,*\fIf\fP++) need not work correctly.
39
Therefore, use of this function is not recommended; \fIfputwc\fP()
40
should be used instead.
41
.SH RATIONALE
42
.LP
43
None.
44
.SH FUTURE DIRECTIONS
45
.LP
46
None.
47
.SH SEE ALSO
48
.LP
49
\fIfputwc\fP() , the Base Definitions volume of IEEE\ Std\ 1003.1-2001,
50
\fI<stdio.h>\fP, \fI<wchar.h>\fP
51
.SH COPYRIGHT
52
Portions of this text are reprinted and reproduced in electronic form
53
from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
54
-- Portable Operating System Interface (POSIX), The Open Group Base
55
Specifications Issue 6, Copyright (C) 2001-2003 by the Institute of
56
Electrical and Electronics Engineers, Inc and The Open Group. In the
57
event of any discrepancy between this version and the original IEEE and
58
The Open Group Standard, the original IEEE and The Open Group Standard
59
is the referee document. The original Standard can be obtained online at
60
http://www.opengroup.org/unix/online.html .