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
|
.\" 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 BTOWC 3 "25 julio 1999" "GNU" "Manual del Programador de Linux"
.SH NOMBRE
btowc \- convierte un nico byte en un carcter ancho
.SH SINOPSIS
.nf
.B #include <wchar.h>
.sp
.BI "wint_t btowc (int " c );
.fi
.SH DESCRIPCIN
La funcin \fBbtowc\fP convierte \fIc\fP, interpretado como una sequencia
multibyte de longitud 1 que comienza en el estado de cambio inicial, a un
carcter ancho, devolviendo el resultado. Si \fIc\fP es EOF o no es una
secuencia multibyte vlida de longitud 1, la funcin \fBbtowc\fP devuelve
WEOF.
.SH "VALOR DEVUELTO"
La funcin \fBbtowc\fP devuelve el carcter ancho obtenido del nico byte
\fIc\fP. Si \fIc\fP es EOF o no es una secuencia multibyte vlida de
longitud 1, devuelve WEOF.
.SH "CONFORME A"
ISO/ANSI C, UNIX98
.SH "VASE TAMBIN"
.BR mbtowc (3)
.SH OBSERVACIONES
El comportamiento de \fBbtowc\fP depende de la categora LC_CTYPE de la
localizacin actual.
.PP
Esta funcin no debera usarse nunca. No funciona para codificaciones con
estado e innecesariamente trata bytes nicos de forma diferente de las
secuencias multibyte. En su lugar, use la funcin \fBmbtowc\fP.
|