drh | ce3c501 | 2016-05-25 18:53:39 +0000 | [diff] [blame] | 1 | /* |
2 | ** Compile this program against an SQLite library of unknown version | ||||
3 | ** and then run this program, and it will print out the SQLite version | ||||
4 | ** information. | ||||
5 | */ | ||||
6 | #include <stdio.h> | ||||
7 | |||||
8 | extern const char *sqlite3_libversion(void); | ||||
9 | extern const char *sqlite3_sourceid(void); | ||||
10 | |||||
11 | int main(int argc, char **argv){ | ||||
12 | printf("SQLite version %s\n", sqlite3_libversion()); | ||||
13 | printf("SQLite source %s\n", sqlite3_sourceid()); | ||||
14 | return 0; | ||||
15 | } |