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:

F10021 | The sqlite3_libversion_number() interface returns an integer equal to SQLITE_VERSION_NUMBER.
F10022 | The sqlite3_version string constant contains the text of the SQLITE_VERSION string.
F10023 | The sqlite3_libversion() function returns a pointer to the sqlite3_version string constant.

See also lists of Objects, Constants, and Functions.

This page last modified 2008/05/12 13:08:44 UTC