19 lines
394 B
Plaintext
19 lines
394 B
Plaintext
:sig
|
|
void mysql_disconnect(MySQL* m)
|
|
|
|
:params
|
|
m : pointer to an existing MySQL connection struct
|
|
|
|
:see
|
|
>mysql
|
|
|
|
:content
|
|
Closes an existing connection to a MySQL server.
|
|
|
|
Call this when you are done using a `MySQL*` connection handle.
|
|
|
|
:example
|
|
MySQL* db = mysql_connect();
|
|
if(db != 0) { mysql_disconnect(db); print("connection closed\n"); }
|
|
else print("(requires a reachable MySQL server)\n");
|