I'm doing a sqlite insert and I've come across the following code:
sqlite3 *db;
char* error_msg = 0;
int rc = sqlite3_open("New.db", &db);
if (rc) {
fprintf(stderr, "Can't open database: %s\n", sqlite3_errmsg(db));
return(0);
} else {
fprintf(stderr, "Opened database successfully\n");
}
What exactly is the fprintf
doing here? What does stderr
mean and do? And finally, if it's writing the output to a file, where can I see that?