C program to get SQLite version in Linux | C programs
Jun 24, 2021
C programming,
348 Views
In this program, we will get the SQLite version using the sqlite3_version() function. The sqlite_version() function returns the string that contains the SQLite version.
C program to get SQLite version in Linux | C programs
Prerequisites:
sudo apt install sqlite3
sudo apt install gcc
sudo apt install libsqlite3-dev
In this program, we will get the SQLite version using the sqlite3_version() function. The sqlite_version() function returns the string that contains the SQLite version.
#include <sqlite3.h>
#include <stdio.h>
#include <string.h>
int main(void)
{
char ver[32];
strcpy(ver, sqlite3_libversion());
printf("Sqlite version : %s\n", ver);
return 0;
}