MYSQL *mysql_init(MYSQL *mysql)
20.4.28.1 Description
Allocates or initializes a MYSQL object suitable for
mysql_real_connect(). If mysql is a NULL pointer, the
function allocates, initializes and returns a new object. Otherwise the
object is initialized and the address of the object is returned. If
mysql_init() allocates a new object, it will be freed when
mysql_close() is called to close the connection.
20.4.28.2 Return values
An initialized MYSQL* handle. NULL if there was
insufficient memory to allocate a new object.
20.4.28.3 Errors
In case of insufficient memory, NULL is returned.