x Length of the resulting string pointed to by ws1, not including the terminating null character. (size_t) -1 Indicates that an error occurred. The function sets errno to EINVAL - The string pointed to by ws2 contains characters outside the domain of the collating sequence.