The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Интерактивная система просмотра системных руководств (man-ов)

 ТемаНаборКатегория 
 
 [Cписок руководств | Печать]

setcat (3)
  • >> setcat (3) ( Solaris man: Библиотечные вызовы )
  •  

    NAME

    setcat - define default catalog
     
    

    SYNOPSIS

    #include <pfmt.h>
    
    char *setcat(const char *catalog);
    

     

    DESCRIPTION

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

    The catalog argument 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).

    The setcat() function 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(3C), lfmt(3C), or pfmt(3C) that do not explicitely specify a catalog name will use Message not found!!\n as default string.  

    RETURN VALUES

    Upon successful completion, setcat() returns a pointer to the catalog name. Otherwise, it returns a null pointer.  

    EXAMPLES

    Example 1 Example of setcat() function.

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

     

    ATTRIBUTES

    See attributes(5) for descriptions of the following attributes:

    ATTRIBUTE TYPEATTRIBUTE VALUE

    MT-LevelMT-Safe

     

    SEE ALSO

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


     

    Index

    NAME
    SYNOPSIS
    DESCRIPTION
    RETURN VALUES
    EXAMPLES
    ATTRIBUTES
    SEE ALSO


    Поиск по тексту MAN-ов: 




    Партнёры:
    PostgresPro
    Inferno Solutions
    Hosting by Hoster.ru
    Хостинг:

    Закладки на сайте
    Проследить за страницей
    Created 1996-2024 by Maxim Chirkov
    Добавить, Поддержать, Вебмастеру