[Go to CFHT Home Page] Man Pages
Back to Software Index  BORDER=0Manpage Top Level
    t_strerror(3N) manual page Table of Contents

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) .


Table of Contents