Artifact caafc3b689638a1d88d44bc5f526c2278760d9b9:
- File tool/libvers.c — part of check-in [2a41f098] at 2016-05-25 18:53:39 on branch trunk — Add the libvers.c tool in the tool/ subdirectory. (user: drh size: 426) [more...]
/* ** 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; }