If the hstrerror() function fails, errno is set to EINVAL, indicating the value of the errnum argument is an invalid error number.