MirOS Manual: catclose(3), catgets(3), catopen(3)

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


     catopen, catgets, catclose - fake message catalog handling


     #include <nl_types.h>

     catopen(const char *name, int oflag);

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

     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

MirOS BSD #10-current            May 30, 2006                                1

Generated on 2017-04-03 16:26:17 by $MirOS: src/scripts/roff2htm,v 1.88 2017/01/29 00:51:06 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–2017 The MirOS Project, Germany.
This product includes material provided by mirabilos.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report — diffs preferred.