1 .\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
3 .\" %%%LICENSE_START(VERBATIM)
4 .\" Permission is granted to make and distribute verbatim copies of this
5 .\" manual provided the copyright notice and this permission notice are
6 .\" preserved on all copies.
8 .\" Permission is granted to copy and distribute modified versions of this
9 .\" manual under the conditions for verbatim copying, provided that the
10 .\" entire resulting derived work is distributed under the terms of a
11 .\" permission notice identical to this one.
13 .\" Since the Linux kernel and libraries are constantly changing, this
14 .\" manual page may be incorrect or out-of-date. The author(s) assume no
15 .\" responsibility for errors or omissions, or for damages resulting from
16 .\" the use of the information contained herein. The author(s) may not
17 .\" have taken the same level of care in the production of this manual,
18 .\" which is licensed free of charge, as they might when working
21 .\" Formatted or processed versions of this manual, if unaccompanied by
22 .\" the source, must acknowledge the copyright and authors of this work.
25 .\" Updated, aeb, 980809
26 .TH CATGETS 3 2013-06-21 "" "Linux Programmer's Manual"
28 catgets \- get message from a message catalog
31 .B #include <nl_types.h>
33 .BI "char *catgets(nl_catd " catalog ", int " set_number \
34 ", int " message_number ,
35 .BI " const char *" message );
43 from the message catalog identified by
47 is a catalog descriptor returned from an earlier call to
51 points to a default message string which will be returned by
53 if the identified message catalog is not currently available.
55 message-text is contained in an internal buffer area and should be copied by
56 the application if it is to be saved or modified.
58 always terminated with a null byte (\(aq\\0\(aq).
63 returns a pointer to an internal buffer area
64 containing the null-terminated message string.
72 These functions are available only in libc.so.4.4.4c and above.
73 The Jan 1987 X/Open Portability Guide specifies a more subtle
76 is returned if the message catalog specified by
78 is not available, while an empty string is returned
79 when the message catalog is available but does not contain
80 the specified message.
81 These two possible error returns seem to be discarded in SUSv2
82 in favor of always returning
88 This page is part of release 3.67 of the Linux
91 A description of the project,
92 information about reporting bugs,
93 and the latest version of this page,
95 \%http://www.kernel.org/doc/man\-pages/.