libvers.c 426 B

12345678910111213141516
  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. extern const char *sqlite3_libversion(void);
  8. extern const char *sqlite3_sourceid(void);
  9. int main(int argc, char **argv){
  10. printf("SQLite version %s\n", sqlite3_libversion());
  11. printf("SQLite source %s\n", sqlite3_sourceid());
  12. return 0;
  13. }