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
|
.\" 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
.\"
.TH FGETWS 3 "25 de julho de 1999" "GNU" "Manual do Programador Linux"
.SH NOME
fgetws \- l uma string de caracteres largos a partir de um fluxo de arquivo
.SH SINOPSE
.nf
.B #include <wchar.h>
.sp
.BI "wchar_t *fgetws (wchar_t *" ws ", int " n ", FILE *" stream );
.fi
.SH DESCRIO
A funo \fBfgetws\fP a equivalente para caracteres largos da funo \fBfgets\fP.
Ela l uma string de, no mximo, \fIn-1\fP caracteres largos e coloca na matriz de
caracteres largos apontada por \fIws\fP, e adiciona um caractere de terminao L'\\0'.
Ela pra de ler caracteres largos depois que encontra e armazena um caractere largo
de nova linha. Ela tambm pra quando o fim do fluxo atingido.
.PP
O programador precisa assegurar-se de que h espao para pelo menos \fIn\fP caracteres
largos em \fIws\fP.
.SH "VALOR DE RETORNO"
A funo \fBfgetws\fP, se bem-sucedida, retorna \fIws\fP. Se o fim do fluxo j foi
encontrado, ou se ocorreu um erro, ela retorna NULL.
.SH "CONFORME"
ISO/ANSI C, UNIX98
.SH "VEJA TAMBM"
.BR fgetwc (3)
.SH NOTAS
O comportamento de \fBfgetws\fP depende da categoria LC_CTYPE do 'locale' corrente.
.PP
Na ausncia de informaes adicionais passadas para a chamada 'fopen', razovel
esperar que \fBfgetws\fP ir ler, no momento, uma string multibyte a partir do fluxo
e ento convert-la para uma string de caracteres largos.
.PP
Esta funo no confivel, porque ela no permite lidar adequadamente com caracteres
largos nulos que possam estar presentes na entrada.
.SH TRADUO PARA A LNGUA PORTUGUESA
\&\fR\&\f(CWRUBENS DE JESUS NOGUEIRA <darkseid99@usa.net> (traduo)\fR
\&\fR\&\f(CWXXXXXX XX XXXXX XXXXXXXX <xxxxxxxxxx@xxx.xxx> (reviso)\fR
|