xref: /sqlite-3.40.0/tool/libvers.c (revision ce3c5011)
1*ce3c5011Sdrh /*
2*ce3c5011Sdrh ** Compile this program against an SQLite library of unknown version
3*ce3c5011Sdrh ** and then run this program, and it will print out the SQLite version
4*ce3c5011Sdrh ** information.
5*ce3c5011Sdrh */
6*ce3c5011Sdrh #include <stdio.h>
7*ce3c5011Sdrh 
8*ce3c5011Sdrh extern const char *sqlite3_libversion(void);
9*ce3c5011Sdrh extern const char *sqlite3_sourceid(void);
10*ce3c5011Sdrh 
main(int argc,char ** argv)11*ce3c5011Sdrh int main(int argc, char **argv){
12*ce3c5011Sdrh   printf("SQLite version %s\n", sqlite3_libversion());
13*ce3c5011Sdrh   printf("SQLite source  %s\n", sqlite3_sourceid());
14*ce3c5011Sdrh   return 0;
15*ce3c5011Sdrh }
16