From 63847496f14c813a5d80efd5b7de0f1294ffe1e3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 16:07:11 +0200 Subject: Adding upstream version 3.45.1. Signed-off-by: Daniel Baumann --- www/c3ref/libversion.html | 161 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 161 insertions(+) create mode 100644 www/c3ref/libversion.html (limited to 'www/c3ref/libversion.html') diff --git a/www/c3ref/libversion.html b/www/c3ref/libversion.html new file mode 100644 index 0000000..161f182 --- /dev/null +++ b/www/c3ref/libversion.html @@ -0,0 +1,161 @@ + + + + + +Run-Time Library Version Numbers + + + +
+ + + +
+
+Small. Fast. Reliable.
Choose any three. +
+ + +
+
+ + + +
+
+
+ + +
+

SQLite C Interface

+

Run-Time Library Version Numbers

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

+These interfaces provide the same information as the SQLITE_VERSION, +SQLITE_VERSION_NUMBER, and SQLITE_SOURCE_ID C preprocessor macros +but are associated with the library instead of the header file. Cautious +programmers might include assert() statements in their application to +verify that values returned by these interfaces match the macros in +the header, and thus ensure that the application is +compiled with matching library and header files.

+ +

+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.

+ +

See also: sqlite_version() and sqlite_source_id(). +

See also lists of + Objects, + Constants, and + Functions.

+ -- cgit v1.2.3