sqlite
[Ported from github.com/sqlite/sqlite] Fix bugs in and improve the interface to the ".check" command of the CLI.
Brought by drakestapleton
| 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 | } |