CATGETS(3) BSD Programmer's Manual CATGETS(3)
catopen, catgets, catclose - fake message catalog handling
#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);
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.
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.
[ENOMEM] Insufficient memory available.
The catopen(), catgets(), and catclose() functions conform to X/Open
Portability Guide Issue 3 ("XPG3").
The return value of the function catgets() should be treated as constant
value.
MirOS BSD #10-current May 30, 2006 1
Generated on 2012-02-20 02:47:02 by $MirOS: src/scripts/roff2htm,v 1.70 2011/12/03 18:21:12 tg Exp $
These manual pages and other documentation are copyrighted by their respective writers;
their source is available at our CVSweb,
AnonCVS, and other mirrors. The rest is Copyright © 2002‒2011 The MirOS Project, Germany.
This product includes material
provided by Thorsten Glaser.
This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.