x A pointer to the generated pathname, suitable for use in a subsequent call to the free function. NULL An error occurred; errno is set to indicate the error.