Name

sqlite3_mprintf() — Format and allocate a string

Definition

char* sqlite3_mprintf( const char* format, ... );
format

An sqlite3_snprintf() style message formatting string.

Additional parameters

Message formatting parameters.

Returns

A newly allocated string built from the given parameters.

Description

This function builds a formatted string and returns it in a newly allocated memory buffer. If the required memory allocation fails, a NULL may be returned. The application is responsible for releasing the returned buffer with sqlite3_free().

This function supports the same extended formatting options as sqlite3_snprintf().

See Also

sqlite3_snprintf()