*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> setcat (3c)              
Title
Content
Arch
Section
 

Contents


setcat(3C)							    setcat(3C)


NAME    [Toc]    [Back]

     setcat - define default catalog

SYNOPSIS    [Toc]    [Back]

     #include <pfmt.h>

     char *setcat(const	char *catalog<b>);

DESCRIPTION    [Toc]    [Back]

     The routine setcat	defines	the default message catalog to be used by
     subsequent	calls to gettxt, lfmt, or pfmt that do not explicitly specify
     a message catalog.

     catalog must be limited to	14 characters.	These characters must be
     selected from a set of all	characters values, excluding \0	(null) and the
     ASCII codes for / (slash) and : (colon).

     setcat assumes that the catalog exists.  No checking is done on the
     argument.

     A null pointer passed as an argument will result in the return of a
     pointer to	the current default message catalog name.  A pointer to	an
     empty string passed as an argument	will cancel the	default	catalog.

     If	no default catalog is specified, or if catalog is an invalid catalog
     name, subsequent calls to gettxt, lfmt, or	pfmt that do not explicitly
     specify a catalog name will use Message not found!!\n as the default
     string.

EXAMPLE    [Toc]    [Back]

	  setcat("test");
	  gettxt(":10",	"hello world\n")

SEE ALSO    [Toc]    [Back]

      
      
     gettxt(3C), lfmt(3C), pfmt(3C), setlocale(3C), environ(5)

DIAGNOSTICS    [Toc]    [Back]

     Upon success, setcat() returns a pointer to the catalog name.  Upon
     failure, setcat() returns a null pointer.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
glcremovecatalog IRIX remove a catalog from the catalog list
glcappendcatalog IRIX append a catalog to the catalog list
gencat FreeBSD NLS catalog compiler
gencat OpenBSD NLS catalog compiler
catclose FreeBSD close message catalog
NLSPATH Tru64 Opening a message catalog
catgets Tru64 Retrieve a message from a catalog
catclose Tru64 Close a specified message catalog
catopen FreeBSD open message catalog
catopen Tru64 Opening a message catalog
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service