hstrerror

Returns an error message string.

Format

#include  <string.h>

char *hstrerror  (int errnum);

Arguments

errnum
An error number specifying a value of h_errno.

Description

The hstrerror routine maps the error number specified by the errnum parameter to a locale-dependent error message string and returns a pointer to the string. The string pointed to by the return value cannot be modified by the program, but could be overwritten by subsequent calls to this routine.

Return Values
A pointer to the generated message string. 
-1  On error, errno might be set, but no return value is reserved to indicate an error. 

Errors
  If the hstrerror routine fails, errno is set to one of the following values:

  • EINVAL - The errnum parameter is an invalid error number.
 


Previous Page | Next Page | Table of Contents | Index