*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> t_strerror (3n)              


t_strerror(3N)							t_strerror(3N)

NAME    [Toc]    [Back]

     t_strerror	- produce an error message string

SYNOPSIS    [Toc]    [Back]

     #ifdef _XOPEN_SOURCE
     #include <xti.h>

     char *t_strerror(int errnum)

DESCRIPTION    [Toc]    [Back]

     t_strerror	maps the error number in errnum	that corresponds to an XTI
     error to a	language-dependent error message string	and returns a pointer
     to	the 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 error	message	strings	written	by t_strerror is
     implementation-defined.  If it is English,	the error message string
     describing	the value in t_errno is	identical to the comments following
     the t_errno codes defined in <xti.h>.  If an error	code is	unknown,
     t_strerror() returns the string:

	  <error>: error unknown

     where <error> is the error	number supplied	as input and is	represented as
     %d	within the message text.  The implementation uses the format of	%2d to
     produce a maximum of two ASCII decimal digits within the message text
     returned.	So, an error number greater than decimal 99 will produce a
     decimal value of 99.

EXAMPLE    [Toc]    [Back]

     For a t_errno equal to 5, the following corresponding message pointer is

	  char *msgptr;
	  msgptr = t_strerror((int)5);

     The returned diagnostic message pointer would point to the	text:

	  couldn't allocate address

     This function resides within the X/Open compliant libxnet Network
     Services library.	Network	Services applications which require X/Open
     compliance	must link-load with -lxnet.

DIAGNOSTICS    [Toc]    [Back]

     t_strerror() returns a pointer to the generated message string.

FILES    [Toc]    [Back]

	  language-specific message file [See LANG on environ(5).]

									Page 1

t_strerror(3N)							t_strerror(3N)

SEE ALSO    [Toc]    [Back]


									PPPPaaaaggggeeee 2222
[ Back ]
 Similar pages
Name OS Title
t_error HP-UX produce error message
t_error Tru64 Produce an error message
t_error IRIX produce error message
gluErrorString Tru64 produce an error string from a GL or GLU error code
gluerrorstring IRIX produce an error string from a GL or GLU error code
scan Tru64 produce a one-line-per-message scan listing (only available within the message handling system, mh)
strerror_r OpenBSD get error message string
strerror OpenBSD get error message string
strerror IRIX get error message string
pam_strerror HP-UX get PAM error message string
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service