1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-01 06:27:03 +03:00

Add the libvers.c tool in the tool/ subdirectory.

FossilOrigin-Name: 2a41f098b2f0523b3d7e6eba6ae91cc0d30752df
This commit is contained in:
drh
2016-05-25 18:53:39 +00:00
parent 756b41ebd4
commit ce3c5011d9
3 changed files with 22 additions and 6 deletions

15
tool/libvers.c Normal file
View File

@ -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;
}