wcserror

Maps an errno value to a wide-character message string.

Library:LibC
Classification:Other
Service:Characters and Strings

Syntax

  #include <wchar.h> 
   
  wchar_t  *wcserror (
     int   errnum);
  

Parameters

errnum

(IN) Specifies the error number to be mapped to an error message.

Return Values

Returns a pointer to the error message. The array containing the error string should not be modified by the program. This array can be overwritten by a subsequent call to the wcserror function.

Remarks

The wcserror function is the wide-character equivalent of the strerror function. It maps the error number in errnum to a locale-dependent error message string and returns a pointer to it.