mysql_real_escape_string(3) | MariaDB Connector/C | mysql_real_escape_string(3) |
mysql_real_escape_string - escape string by taking into account character set of connection
#include <mysql.h> unsigned long mysql_real_escape_string(MYSQL * mysql,
char * to,
const char * from,
unsigned long);
This function is used to create a legal SQL string that you can use in an SQL statement. The given string is encoded to an escaped SQL string, taking into account the current character set of the connection.
Returns the length of the encoded (to) string.
Version 3.3.1 |