Created
January 17, 2015 04:19
-
-
Save crowell/7c44eea61b97db22d946 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <sqlite3.h> | |
int main(int argc, char* argv[]) | |
{ | |
sqlite3 *db; | |
char *zErrMsg = 0; | |
int rc; | |
rc = sqlite3_open("test.db", &db); | |
printf("size: %lld\n", sizeof(db)); | |
if( rc ){ | |
fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db)); | |
return 1; | |
}else{ | |
fprintf(stderr, "Opened database successfully\n"); | |
} | |
sqlite3_close(db); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment