-
Notifications
You must be signed in to change notification settings - Fork 264
/
Copy pathmysql_init.3
33 lines (32 loc) · 1.16 KB
/
mysql_init.3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.\" Automatically generated by Pandoc 3.5
.\"
.TH "mysql_init" "3" "" "Version 3.4" "MariaDB Connector/C"
.SS Name
mysql_init \- Prepares and initializes a \f[CR]MYSQL\f[R] structure
.SS Synopsis
.IP
.EX
#include \f[B]<mysql.h>\f[R]
MYSQL *mysql_init(MYSQL *mysql);
.EE
.SS Description
Prepares and initializes a \f[CR]MYSQL\f[R] structure to be used with
\f[B]mysql_real_connect(3)\f[R].
If an address of a \f[CR]MYSQL\f[R] structure was passed as parameter,
the structure will be initialized, if \f[CR]NULL\f[R] was passed, a new
structure will be allocated and initialized.
.PP
\f[B]Notes:\f[R] * If parameter \f[CR]mysql\f[R] is not \f[CR]NULL\f[R]
\f[B]mysql_close(3)\f[R] API function will not release the memory * Any
subsequent calls to any function (except \f[B]mysql_optionsv(3)\f[R]
will fail until \f[B]mysql_real_connect(3)\f[R] was called.
* Memory allocated by \f[CR]mysql_init()\f[R] must be freed with
\f[B]mysql_close(3)\f[R].
.SS Return value
The \f[CR]mysql_init()\f[R] function returns an address of a
\f[CR]MYSQL\f[R] structure, or NULL in case of memory allcation error.
.SS See also
.IP \[bu] 2
\f[B]mysql_close(3)\f[R]
.IP \[bu] 2
\f[B]mysql_optionsv(3)\f[R]