programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: SQLite and SwiftForth

From: Stefan Schmiedl <s_at_xss.de>
Date: Mon, 8 Oct 2007 23:03:09 +0200

On Mon, 08 Oct 2007 19:07:45 +0100
Tony Mc <afmcc_at_btinternet.com> wrote:

> The C prototype for sqlite3_open is:
> int sqlite3_open( const char *filename, sqlite3 **ppDb);
>
> and I am not sure what to pass as the second argument since it seems
> to involve passing the address of an address of an sqlite3 structure
> (in C that would be a declaration sqlite3 *db and pass &db as the
> second argument). So, how would I make the call to sqlite3_open in SF?

I don't know about SQLite, but MySQL uses similar prototypes and lets
you pass in NULL as handle indicating that it should allocate the
structure itself.

Maybe SQLite does the same?

s.

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and
bug reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Mon Oct 08 2007 - 14:04:00 PDT

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:43 PST