Returns zero after completing successfully. Any other returned value indicates that an error occurred. When the following condition occurs, pthread_key_create() fails and returns the corresponding value.
EINVAL
The key value is invalid.