Frank,
You spotted the deliberate error! :)
The call is indeed:
const unsigned char *sw_cell(sw_result *result, int column, int row);
So the example should read:
printf("Data %s, %s, %s\n", sw_cell(result, 0, 0), sw_cell(result, 0, 1), sw_cell(result, 0, 2));
Ben
F.W.A. van Leeuwen wrote:
I assume something is missing in your example.
There seems to be no connection between the 'result' variable and the sw_cell() calls.
result = sw_query(sqlite_handle, "SELECT * FROM table");
printf("Data %s, %s, %s\n", sw_cell(0, 0), sw_cell(0, 1), sw_cell(0,
2));
best regards Frank