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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access