Small. Fast. Reliable.
Choose any three.

About Sitemap Documentation Download License News Developers Support

## SQLite C Interface

## Run-Time Library Version Numbers

>     SQLITE_EXTERN const char sqlite3_version[];
>     const char *sqlite3_libversion(void);
>     int sqlite3_libversion_number(void);

These features provide the same information as the SQLITE_VERSION and SQLITE_VERSION_NUMBER #defines in the header, but are associated with the library instead of the header file. Cautious programmers might include a check in their application to verify that sqlite3_libversion_number() always returns the value SQLITE_VERSION_NUMBER.

The sqlite3_libversion() function returns the same information as is in the sqlite3_version[] string constant. The function is provided for use in DLLs since DLL users usually do not have direct access to string constants within the DLL.

### Invariants:

H10021 | The sqlite3_libversion_number() interface shall return an integer equal to SQLITE_VERSION_NUMBER.
H10022 | The sqlite3_version string constant shall contain the text of the SQLITE_VERSION string.
H10023 | The sqlite3_libversion() function shall return a pointer to the sqlite3_version string constant.

See also lists of Objects, Constants, and Functions.

This page last modified 2008/12/09 18:44:04 UTC