SQLITE3_VERSION(3) | Library Functions Manual | SQLITE3_VERSION(3) |
sqlite3_version
,
sqlite3_libversion
,
sqlite3_sourceid
,
sqlite3_libversion_number
—
const char *
sqlite3_libversion
(void);
const char *
sqlite3_sourceid
(void);
int
sqlite3_libversion_number
(void);
assert( sqlite3_libversion_number()==SQLITE_VERSION_NUMBER ); assert( strncmp(sqlite3_sourceid(),SQLITE_SOURCE_ID,80)==0 ); assert( strcmp(sqlite3_libversion(),SQLITE_VERSION)==0 );
The sqlite3_version[] string constant contains the text of SQLITE_VERSION macro. The sqlite3_libversion() function returns a pointer to the to the sqlite3_version[] string constant. The sqlite3_libversion() function is provided for use in DLLs since DLL users usually do not have direct access to string constants within the DLL. The sqlite3_libversion_number() function returns an integer equal to SQLITE_VERSION_NUMBER. The sqlite3_sourceid() function returns a pointer to a string constant whose value is the same as the SQLITE_SOURCE_ID C preprocessor macro. Except if SQLite is built using an edited copy of the amalgamation, then the last four characters of the hash might be different from SQLITE_SOURCE_ID.
December 19, 2018 | NetBSD 9.0 |