GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
mysql_init(3) MariaDB Connector/C mysql_init(3)

mysql_init - Prepares and initializes a MYSQL structure


#include <mysql.h>
MYSQL *mysql_init(MYSQL *mysql);

    

Prepares and initializes a MYSQL structure to be used with mysql_real_connect(3). If an address of a MYSQL structure was passed as parameter, the structure will be initialized, if NULL was passed, a new structure will be allocated and initialized.

Notes: * If parameter mysql is not NULL mysql_close(3) API function will not release the memory * Any subsequent calls to any function (except mysql_optionsv(3) will fail until mysql_real_connect(3) was called. * Memory allocated by mysql_init() must be freed with mysql_close(3).

The mysql_init() function returns an address of a MYSQL structure, or NULL in case of memory allcation error.

mysql_close(3)
mysql_optionsv(3)
Version 3.2.2

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.