Skip to content

mysql_init

Georg Richter edited this page Aug 14, 2018 · 2 revisions

Name

mysql_init - Prepares and initializes a MYSQL structure

Synopsis

#include <mysql.h>

MYSQL *mysql_init(MYSQL *mysql);

Description

Prepares and initializes a MYSQL structure to be used with mysql_real_connect(). 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:

Return value

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

See also

Clone this wiki locally