Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dspcat(1) [hpux man page]

dspcat(1)						      General Commands Manual							 dspcat(1)

NAME
dspcat - display all or part of a message catalog SYNOPSIS
catalog_name [set_number [message_number]] DESCRIPTION
The command displays a particular message, all of the messages in a set, or all of the messages in a catalog. If you include all three command operands, displays a particular message. If you do not include message_number, all the messages in the specified set are displayed. If you specify only catalog_name, all the messages in the catalog are displayed. If you specify either an invalid message_number or invalid set_number, an error message is displayed. You must include set_number if you include message_number. Options The command recognizes the following option: Formats the output so that it can be used as input to the command. You cannot use the message_number operand with the option. Operands The command recognizes the following operands: catalog_name Specifies a file containing a message catalog. If the file is not in the set of directories specified by the envi- ronment variable, searches for it in the current directory. (For more information about see environ(5).) set_number Specifies a set in the catalog. message_number Specifies a particular number in the specified set. EXTERNAL INFLUENCES
Environment Variables provides a default value for the internationalization variables that are unset or null. If is unset or null, it defaults to (see lang(5)). when set to a non-empty string value, overrides the values of all other internationalization variables. determines the language in which messages are displayed. determines the path to be used for searching the specified message catalog file. It affects how the internationalization variables are used in locating the desired message catalog. EXAMPLES
To display message number 2 in set number 1 of test.cat, enter: AUTHOR
The command was developed by OSF and HP. SEE ALSO
dspmsg(1), gencat(1), mkcatdefs(1), catclose(3C), catgets(3C), catopen(3C). dspcat(1)

Check Out this Related Man Page

CATGETS(3)						     Linux Programmer's Manual							CATGETS(3)

NAME
catgets - get message from a message catalog SYNOPSIS
#include <nl_types.h> char *catgets(nl_catd catalog, int set_number, int message_number, const char *message); DESCRIPTION
catgets() reads the message message_number, in set set_number, from the message catalog identified by catalog, where catalog is a catalog descriptor returned from an earlier call to catopen(3). The fourth argument, message, points to a default message string which will be returned by catgets() if the identified message catalog is not currently available. The message-text is contained in an internal buffer area and should be copied by the application if it is to be saved or modified. The return string is always terminated with a null byte (''). RETURN VALUE
On success, catgets() returns a pointer to an internal buffer area containing the null-terminated message string. On failure, catgets() returns the value message. ATTRIBUTES
For an explanation of the terms used in this section, see attributes(7). +----------+---------------+---------+ |Interface | Attribute | Value | +----------+---------------+---------+ |catgets() | Thread safety | MT-Safe | +----------+---------------+---------+ CONFORMING TO
POSIX.1-2001, POSIX.1-2008. NOTES
The catgets() function is available only in libc.so.4.4.4c and above. The Jan 1987 X/Open Portability Guide specifies a more subtle error return: message is returned if the message catalog specified by catalog is not available, while an empty string is returned when the mes- sage catalog is available but does not contain the specified message. These two possible error returns seem to be discarded in SUSv2 in favor of always returning message. SEE ALSO
catopen(3), setlocale(3) COLOPHON
This page is part of release 4.15 of the Linux man-pages project. A description of the project, information about reporting bugs, and the latest version of this page, can be found at https://www.kernel.org/doc/man-pages/. 2015-08-08 CATGETS(3)
Man Page