1 .\" $NetBSD: catgets.3,v 1.16 2003/07/26 19:24:49 salo Exp $
3 .\" Written by J.T. Conklin <jtc@NetBSD.org>.
11 .Nd retrieve string from message catalog
17 .Fn catgets "nl_catd catd" "int set_id" "int msg_id" "const char *s"
21 function attempts to retrieve message
25 from the message catalog referenced by the descriptor
29 points to a default message which is returned if the function
30 is unable to retrieve the specified message.
32 If the specified message was retrieved successfully,
34 returns a pointer to an internal buffer containing the message string;
40 function will fail if:
45 argument is not a valid message catalog descriptor open for reading.
47 The operation was interrupted by a signal.
49 The message identified by
53 is not in the message catalog.
66 Major Unix vendors are split over the adoption of the two most
67 important message catalog specifications: catgets or
69 The primary concern with the catgets interface is that every
70 translatable string has to define a number (or a symbolic constant)
71 which must correspond to the message in the catalog.
72 Duplicate message IDs are not allowed.
73 Constructing message catalogs is difficult.