textdomain

Name

textdomain -- set the current default message domain

Synopsis

#include <libintl.h>

char * textdomain(const char * domainname);

Description

The textdomain() function shall set the current default message domain to domainname. Subsequent calls to gettext() and ngettext() use the default message domain.

If domainname is NULL, the default message domain shall not be altered.

If domainname is "", textdomain() shall reset the default domain to the system default of "messages".

Return

On success, textdomain() shall return the currently selected domain. Otherwise, a null pointer shall be returned, and errno set to indicate the error.

Errors

ENOMEM

Insufficent memory available.