Penguin
Annotated edit history of catgets(3) version 1, including all changes. View license author blame.
Rev Author # Line
1 perry 1 CATGETS
2 !!!CATGETS
3 NAME
4 SYNOPSIS
5 DESCRIPTION
6 RETURN VALUE
7 NOTES
8 CONFORMING TO
9 SEE ALSO
10 ----
11 !!NAME
12
13
14 catgets - get message from a message catalog
15 !!SYNOPSIS
16
17
18 __#include
19 ____char *catgets(nl_catd__ ''catalog''__, int__ ''set_number''__, int__ ''message_number''__, const char *__''message''__);__
20 !!DESCRIPTION
21
22
23 __catgets()__ reads the message ''message_number'', in
24 set ''set_number'', from the message catalog identified
25 by ''catalog'', where ''catalog'' is a catalog
26 descriptor returned from an earlier call to
27 catopen(3). The fourth argument ''message'' points
28 to a default message string which will be returned by
29 __catgets()__ if the identified message catalog is not
30 currently available. The message-text is contained in an
31 internal buffer area and should be copied by the application
32 if it is to be saved or modified. The return string is
33 always terminated with a null byte.
34 !!RETURN VALUE
35
36
37 On success, __catgets()__ returns a pointer to an
38 internal buffer area containing the null-terminated message
39 string. On failure, __catgets()__ returns the value
40 ''message''.
41 !!NOTES
42
43
44 These functions are only available in libc.so.4.4.4c and
45 above. The Jan 1987 X/Open Portability Guide specifies a
46 more subtle error return: ''message'' is returned if the
47 message catalog specified by ''catalog'' is not
48 available, while an empty string is returned when the
49 message catalog is available but does not contain the
50 specified message. These two possible error returns seem to
51 be discarded in XPG4.2 in favour of always returning
52 ''message''.
53 !!CONFORMING TO
54
55
56 XPG4.2
57 !!SEE ALSO
58
59
60 catopen(3), setlocale(3)
61 ----
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.