x The converted value. 0 Indicates that the string starts with an unrecognized wide character or that the value for base is invalid. If the string starts with an unrecognized wide character, *endptr is set to nptr. The function sets errno to EINVAL. LONG_MAX or LONG_ Indicates that the converted value would cause MIN a positive or negative overflow, respectively. The function sets errno to ERANGE.