Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
mysql_init(3)		       MariaDB Connector/C		   mysql_init(3)

   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_con-
     nect(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.  * Mem-
     ory allocated by mysql_init() must be freed with mysql_close(3).

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

   See also
     * mysql_close(3)

     * mysql_optionsv(3)

Version 3.4							   mysql_init(3)

Want to link to this manual page? Use this URL:
<
https://man.freebsd.org/cgi/man.cgi?query=mysql_init&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help