CATGETS(3) BSD Programmer's Manual CATGETS(3)NAME
catopen, catgets, catclose - fake message catalog handling
SYNOPSIS
#include <nl_types.h>
nl_catd
catopen(const char *name, int oflag);
char *
catgets(nl_catd catd, int set_id, int msg_id, const char *s);
int
catclose(nl_catd catd);
DESCRIPTION
These functions are supposed to retrieve messages from message catalogues
according to the current locale. In MirOS, the catgets() function simply
returns the string argument s; the other functions do nothing.
RETURN VALUES
Upon successful completion, catopen() returns a message catalog descrip-
tor. Otherwise, -1 is returned and errno is set to indicate the error.
If the specified message was retrieved successfully, catgets() returns a
pointer to an internal buffer containing the message string; otherwise it
returns s.
ERRORS
[ENOMEM] Insufficient memory available.
STANDARDS
The catopen(), catgets(), and catclose() functions conform to X/Open
Portability Guide Issue 3 ("XPG3").
CAVEATS
The return value of the function catgets() should be treated as constant
value.
MirOS BSD #10-current May 30, 2006 1