t_strerror(3N)
NAME
t_strerror − get error message string
SYNOPSIS
cc [ flag ... ] file ... −lnsl [ library ... ]
#include <tiuser.h>
char ∗t_strerror(int errnum);
MT-LEVEL
Unsafe
DESCRIPTION
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.
SEE ALSO
gettext(3I), perror(3C), setlocale(3C), strerror(3C), t_error(3N)
VALID STATES
All − apart from T_UNINIT.
NOTES
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).
Sun Microsystems — Last change: 11 Aug 1993