Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Unified Diff: third_party/sqlite/src/tool/libvers.c

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/sqlite/src/tool/lempar.c ('k') | third_party/sqlite/src/tool/logest.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/sqlite/src/tool/libvers.c
diff --git a/third_party/sqlite/src/tool/libvers.c b/third_party/sqlite/src/tool/libvers.c
new file mode 100644
index 0000000000000000000000000000000000000000..6911dbd07eb1c23d0a5aeee34460ba9e1b1a7b9e
--- /dev/null
+++ b/third_party/sqlite/src/tool/libvers.c
@@ -0,0 +1,15 @@
+/*
+** Compile this program against an SQLite library of unknown version
+** and then run this program, and it will print out the SQLite version
+** information.
+*/
+#include <stdio.h>
+
+extern const char *sqlite3_libversion(void);
+extern const char *sqlite3_sourceid(void);
+
+int main(int argc, char **argv){
+ printf("SQLite version %s\n", sqlite3_libversion());
+ printf("SQLite source %s\n", sqlite3_sourceid());
+ return 0;
+}
« no previous file with comments | « third_party/sqlite/src/tool/lempar.c ('k') | third_party/sqlite/src/tool/logest.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698