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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
|
.\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
.\"
.\" 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.
.\"
.\"
.\" Traducido al castellano (con permiso) por:
.\" Sebastian Desimone (chipy@argenet.com.ar) (desimone@fasta.edu.ar)
.\" Translation fixed on Wed Apr 22 12:52:20 CEST 1998 by Gerardo
.\" Aburruzaga Garca <gerardo.aburruzaga@uca.es>
.\" Updated, aeb, 980809
.\" Translation fixed on Fri Oct 2 1998 by Juan Piernas <piernas@ditec.um.es>
.\"
.TH CATGETS 3 "9 Agosto 1998" "Linux" "Manual del Programador de Linux"
.SH NOMBRE
catgets \- obtiene un mensaje de un catlogo
.SH SINOPSIS
.LP
.nf
.ft B
.B #include <nl_types.h>
.ft
.fi
.LP
.BI "char *catgets(nl_catd " catalog ", int " set_number ,
.BI "int " message_number ", const char *" message );
.SH DESCRIPCIN
.IX "catgets" "" "\fLcatgets\fR \(em lee un mensaje de un programa" ""
.LP
.B catgets(\|)
lee el mensaje
.IR message_number ,
en el conjunto
.IR set_number ,
del catlogo de mensajes identificado por
.IR catalog ,
donde
.I catalog
es un descriptor de catlogo devuelto por una llamada anterior a
.BR catopen (3).
El cuarto argumento,
.IR message ,
apunta a un mensaje predeterminado que ser devuelto por
.B catgets(\|)
si el catlogo de mensajes identificado no est actualmente disponible.
El texto del mensaje est contenido en un rea de memoria interna
y debe ser copiado a la aplicacin si se quiere guardar o modificar. La
cadena devuelta siempre se hace terminar con un byte NUL.
.SH VALOR DEVUELTO
.LP
Si tiene xito,
.B catgets(\|)
devuelve un puntero a un rea de memoria interna conteniendo la cadena
del mensaje terminada en NUL.
.B catgets(\|)
devuelve un puntero a
.IR message .
.SH NOTAS
Estas funciones estn disponibles solamente en libc.so.4.4.4c o
superior.
The X/Open Portability Guide de enero de 1987 especifica un caso de error
ms sutil:
se devuelve
.I message
si no est disponible el catlogo de mensajes especificado por
.IR catalog ,
mientras que se devuelve una cada vaca cuando est disponible el catlogo
de mensajes pero no contiene el mensaje indicado.
Parece ser que estos dos casos posibles de error se van a eliminar
de XPG4.2 en favor de que siempre se devuelva
.IR message .
.SH "CONFORME A"
XPG4.2
.SH "VASE TAMBIN"
.BR catopen (3),
.BR setlocale (3)
|