garten
view db.h @ 20:17b2bcc42d72
added check for empty result; minor stuff
author | meillo@marmaro.de |
---|---|
date | Sun, 27 Jul 2008 21:34:54 +0200 |
parents | 8db6497d6065 |
children |
line source
1 #include <sqlite3.h>
3 char* database;
4 int gametime;
5 char query[1024];
6 sqlite3* db;
7 sqlite3_stmt* stmt;
9 int read_time();
11 void db_connect();
12 void db_close();
13 sqlite3_stmt* db_query(char* query);
14 int db_update(char* query);
15 int db_rows(sqlite3_stmt* stmt);
16 void db_error(char* info);