.\" Copyright 1993 Mitchum DSouza .\" .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" .\" Updated, aeb, 980809 .TH CATGETS 3 "9 August 1998" .SH NOME catgets \- obtem mensagem de um catálogo de mensagens .SH SINOPSE .LP .nf .ft B #include .ft .fi .LP .BI "char *catgets(nl_catd " catalog ", int " set_number , .BI "int " message_number ", const char *" message ); .SH DESCRIÇÃO .IX "catgets" "" "\fLcatgets\fR \(em lê uma mensagem" "" .LP .B catgets(\|) lê a mensagem de número .IR message_number , no conjunto .IR set_number do catálogo designado por .IR catalog , que é um descritor de catálogo retornado por uma chamada anterior a .BR catopen (3). O argumento .I message indica uma mensagem padrão a ser retornada se o catálogo não estiver disponível. O texto fica num buffer interno, e deve ser copiado pelo aplicativo se se desejar gravá-lo ou modificá-lo. A string retornada é sempre terminada em null. .SH VALOR RETORNADO .LP Se tiver êxito, .B catgets(\|) retorna um ponteiro para um buffer interno contendo o texto da mensagem. Se falhar, retorna .IR message . .SH OBSERVAÇÕES Estas funções só existem no libc.so.4.4.4c e posteriores. O X/Open Portability Guide de janeiro de 1987 define uma mensagem de erro mais sutil: será retornado .I message se o catálogo não estiver disponível, e uma string vazia se o catálogo estiver disponível mas não contiver a mensagem especificada. Estas dois erros não são diferenciados pelo XPG4.2, que sempre retorna .IR message . .SH "DE ACORDO COM" XPG4.2 .SH VER TAMBÉM .BR catopen (3), .BR setlocale (3) .SH TRADUZIDO POR LDP-BR em 21/08/2000. \&\fR\&\f(CWPaulo César Mendes (tradução)\fR \&\fR\&\f(CWxxxxxxxxxxxxxxxxxxxxxxxxx (revisão)\fR