t_strerror(3N) manual page
Table of Contents
t_strerror - get error message string
cc [ flag ... ] file ... -lnsl
[ library ... ]
#include <tiuser.h>
char *t_strerror(int errnum);
Unsafe
The t_strerror() function maps the error number in errnum
that corresponds to a TLI error to a language-independent error message
string and returns a pointer to that string. The string pointed to will
not be modified by the program, but may be overwritten by a subsequent
call to the t_strerror() function. The string is not terminated by a newline
character. The language for the error message strings written by t_strerror()
is implementation-defined. If an error code is unknown and the language
is English, t_strerror() returns the string:
"<error>: error unknown"
where
<error> is the error number supplied as input. In other languages, an equivalent
text is provided.
gettext(3I)
, perror(3C)
, setlocale(3C)
, strerror(3C)
,
t_error(3N)
All - apart from T_UNINIT.
If the application
is linked with -lintl, then messages returned from this function are in
the native language specified by the LC_MESSAGES locale category; see setlocale(3C)
.
Table of Contents