2 .\" Copyright 1993 Mitchum DSouza <m.dsouza@mrc-applied-psychology.cambridge.ac.uk>
4 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
6 .\" Updated, aeb, 980809
7 .TH catgets 3 (date) "Linux man-pages (unreleased)"
9 catgets \- get message from a message catalog
12 .RI ( libc ", " \-lc )
15 .B #include <nl_types.h>
17 .BI "char *catgets(nl_catd " catalog ", int " set_number \
18 ", int " message_number ,
19 .BI " const char *" message );
27 from the message catalog identified by
31 is a catalog descriptor returned from an earlier call to
35 points to a default message string which will be returned by
37 if the identified message catalog is not currently available.
39 message-text is contained in an internal buffer area and should be copied by
40 the application if it is to be saved or modified.
42 always terminated with a null byte (\[aq]\e0\[aq]).
46 returns a pointer to an internal buffer area
47 containing the null-terminated message string.
53 For an explanation of the terms used in this section, see
61 Interface Attribute Value
64 T} Thread safety MT-Safe
70 POSIX.1-2001, POSIX.1-2008.
74 function is available only in libc.so.4.4.4c and above.
75 The Jan 1987 X/Open Portability Guide specifies a more subtle
78 is returned if the message catalog specified by
80 is not available, while an empty string is returned
81 when the message catalog is available but does not contain
82 the specified message.
83 These two possible error returns seem to be discarded in SUSv2
84 in favor of always returning