Wondering if anyone has used SQLite. I'm having trouble with the basics.
sqlite3_get_table function.

Before I start.. I just want to say how ridiculously unclear the Apress book 'The Definitive Guide to Sqlite' is. I'm inclined to say, don't buy it. I can't make any sense of their explanations and they don't explain things properly. Leave you hanging if you know what I mean. Anyway, that's off my chest now. A book burning session will top it off.

For the sqlite3_get_table function the third argument is to be declared before I use the function. Like so:

char *results[]; // thats it.

But I get the error saying that the size of 'results' can't be determined. 'results' is the third argument in the sqlite3_get_table function which receives the result funnily enough. From what I can see it is supposed to be declared empty but that's probably wrong.

Why am I getting this error AND... Does anyone know how to use this function properly because the useless book I bought is about to be put in the oven.

Thanks to anyone who can help me..