You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
412 B
18 lines
412 B
#include <signal.h>
|
|
#include <sqlite3.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
int main(int argc, char const *argv[]) {
|
|
sqlite3 *db;
|
|
char *zErrMsg = 0;
|
|
int rc;
|
|
rc = sqlite3_open("test.db", &db);
|
|
if (rc) {
|
|
fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db));
|
|
exit(0);
|
|
} else {
|
|
fprintf(stderr, "Opened database successfully\n");
|
|
}
|
|
sqlite3_close(db);
|
|
return 0;
|
|
}
|