setcat man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



setcat(3C)							    setcat(3C)

NAME
     setcat - define default catalog

SYNOPSIS
     #include <pfmt.h>

     char *setcat(const char *catalog);

DESCRIPTION
     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
	  setcat("test");
	  gettxt(":10", "hello world\n")

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

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

									Page 1

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net