Quoth Jonathan Haws <[email protected]>, on 2010-12-06 22:51:16 +0000:
> As an argument to the callback, I pass the address of the array.
> However, I cannot change that address and have it persist through to
> the next call for the next row.
This isn't an SQLite problem; it's a C problem. You need to make a
C-style closure: function plus pointer to structure of persistent
data. Define:
struct write_closure {
mystructure *next;
};
or whatever, then put a struct write_closure on the stack and pass a
pointer to that. Then you can mutate the members of the closure
structure (in this case, have each callback invocation increment the
next-pointer).
---> Drake Wilson
_______________________________________________
sqlite-users mailing list
[email protected]
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users