> 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).

This closure defintion solved my problem (I actually put a void* in the 
closure to handle multiple structure definitions with a single closure.

I agree, this is a C problem from the beginning, but since it was 
directly related to pulling data from an SQLite database, I thought I 
would ask here and get quick responses.

Thanks to all for the help!

Jonathan


_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to