Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

catgets(3c) [hpux man page]

catgets(3C)															       catgets(3C)

NAME
catgets() - get a program message SYNOPSIS
DESCRIPTION
The function reads message in set from the message catalog identified by a catalog descriptor returned from a previous call to (see catopen(3C)). If the call fails, points to a default message string returned by A message longer than bytes is truncated. The returned message string is always terminated with a null byte. is defined in EXTERNAL INFLUENCES
International Code Set Support Single- and multi-byte character code sets are supported. RETURN VALUE
If the call is successful, returns a pointer to an internal buffer area containing the null-terminated message string. If the call is unsuccessful, returns a pointer to ERRORS
fails and sets under any of the following conditions: [EBADF] is not a valid catalog descriptor. [EINTR] A signal was caught during the read(2) system call. [EINVAL] The message catalog identified by is corrupted. [ENOMSG] The message identified by or is not in the message catalog. [ERANGE] A message longer than bytes was truncated. WARNINGS
The function returns a pointer to a static area that is overwritten on each call. AUTHOR
was developed by HP. FILES
SEE ALSO
dumpmsg(1), findmsg(1), gencat(1), catclose(3C), catopen(3C), thread_safety(5). STANDARDS CONFORMANCE
catgets(3C)

Check Out this Related Man Page

catgets(3C)						   Standard C Library Functions 					       catgets(3C)

NAME
catgets - read a program message SYNOPSIS
#include <nl_types.h> char *catgets(nl_catd catd, int set_num, int msg_num, const char *s); DESCRIPTION
The catgets() function attempts to read message msg_num, in set set_num, from the message catalog identified by catd. The catd argument is a catalog descriptor returned from an earlier call to catopen(). The s argument points to a default message string which will be returned by catgets() if the identified message catalog is not currently available. RETURN VALUES
If the identified message is retrieved successfully, catgets() returns a pointer to an internal buffer area containing the null termi- nated message string. If the call is unsuccessful for any reason, catgets() returns a pointer to s and errno may be set to indicate the error. ERRORS
The catgets() function may fail if: EBADF The catd argument is not a valid message catalogue descriptor open for reading. EBADMSG The number of %n specifiers that appear in the message string specified by s does not match the number of %n specifiers that appear in the message identified by set_id and msg_id in the specified message catalog. EINTR The read operation was terminated due to the receipt of a signal, and no data was transferred. EINVAL The message catalog identified by catd is corrupted. ENOMSG The message identified by set_id and msg_id is not in the message catalog. USAGE
The catgets() function can be used safely in multithreaded applications as long as setlocale(3C) is not being called to change the locale. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Standard | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
gencat(1), catclose(3C), catopen(3C), gettext(3C), setlocale(3C), attributes(5), standards(5) International Language Environments Guide SunOS 5.10 22 Mar 2002 catgets(3C)
Man Page