FreeBSD manual

download PDF document: mysql_server_init.3.pdf

mysql_server_init(3) MariaDB Connector/C mysql_server_init(3)
Name mysql_server_init - Initializes library
Synopsis
#include <mysql.h>
int mysql_library_init(int argc __attribute__((unused)), char **argv __attribute__((unused)), char **groups __attribute__((unused)))

Description Call to initialize the library before calling other functions.
Parameters All parameters are unused, they only exist for compatibility reasons.
Notes o Call mysql_server_end(3) to clean up after completion.
o If the library was not explicetly initialized by mysql_server_init() any call to mysql_init(3) will automatically initialize the library.
o mysql_library_init() is an alias for mysql_server_init()
Return value Returns zero for success, or nonzero if an error occurred. ## See also * mysql_server_end(3)
Version 3.3.1 mysql_server_init(3)