File: fputwc.3

package info (click to toggle)
manpages-es 1.28-13
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,884 kB
  • ctags: 6
  • sloc: makefile: 63; sh: 55
file content (57 lines) | stat: -rw-r--r-- 2,153 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.\" Copyright (c) Bruno Haible <haible@clisp.cons.org>
.\"
.\" This is free documentation; you can redistribute it and/or
.\" modify it under the terms of the GNU General Public License as
.\" published by the Free Software Foundation; either version 2 of
.\" the License, or (at your option) any later version.
.\"
.\" References consulted:
.\"   GNU glibc-2 source code and manual
.\"   Dinkumware C library reference http://www.dinkumware.com/
.\"   OpenGroup's Single Unix specification http://www.UNIX-systems.org/online.html
.\"   ISO/IEC 9899:1999
.\"
.\" Translated Sun Apr 23 2000 by Juan Piernas <piernas@ditec.um.es>
.\"
.TH FPUTWC 3  "25 julio 1999" "GNU" "Manual del Programador de Linux"
.SH NOMBRE
fputwc \- escribe un carcter ancho en un flujo FILE
.SH SINOPSIS
.nf
.B #include <stdio.h>
.br
.B #include <wchar.h>
.sp
.BI "wint_t fputwc (wchar_t " wc ", FILE* " stream );
.BI "wint_t putwc (wchar_t " wc ", FILE* " stream );
.fi
.SH DESCRIPCIN
La funcin \fBfputwc\fP es equivalente para caracteres anchos a la funcin
\fBfputc\fP. La funcin escribe el carcter ancho \fIwc\fP en \fIstream\fP. Si
\fIferror(stream)\fP es cierto, devuelve WEOF. Si se produce un error en la
conversin de caracteres anchos, asigna a \fBerrno\fP el valor \fBEILSEQ\fP
y devuelve WEOF. En otro caso, devuelve \fIwc\fP.
.PP
La funcin o macro \fBputwc\fP funciona de la misma forma que \fBfputwc\fP.
Se puede implementar como una macro y puede evaluar su argumento ms de una
vez. Nunca hay razn para utilizarla.
.SH "VALOR DEVUELTO"
La funcin \fBfputwc\fP devuelve \fIwc\fP si no se ha producido ningn
error, o WEOF para indicar un error.
.SH ERRORES
Aparte de los usuales, existe
.TP
.B EILSEQ
Ha fallado la conversin de \fIwc\fP a la codificacin del flujo.
.SH "CONFORME A"
ISO/ANSI C, UNIX98
.SH "VASE TAMBIN"
.BR fgetwc (3),
.BR fputws (3)
.SH OBSERVACIONES
El comportamiento de \fBfputwc\fP depende de la categora LC_CTYPE de la
localizacin actual.
.PP
En ausencia de informacin adicional pasada a la llamada fopen, es razonable
esperar que \fBfputwc\fP escriba realmente la secuencia multibyte
correspondiente al carcter ancho \fIwc\fP.