Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

catgets - read message

&pagelevel(4)&pagelevel

Syntax

#include <nl_types.h>

char *catgets(nl_catd catd, int set_id, int msg_id, const char *s);

Description

catgets() attempts to read message msg_id, in set set_id, from the message catalogidentified by catd.

catd is a message 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 it cannot retrieve the identified message.

Return val.

Pointer to an internal buffer area containing the message which ends in X‘00‘


if successful.

s

if unsuccessful. errno is set to indicate the error.

Errors

catgets() will fail if:

EBADF

EINTR

The message catalog descriptor is not valid for reading.

The read operation is interrupted by a signal, and no data is transferred.

See also

catopen(), nl_types.h, section “Locale”.