[UFFI-Users] returning c pointers

Patrick X dabittweiler at gmail.com
Tue Feb 6 00:29:46 MST 2007

Bare with me now, I'm new to lisp and uffi in general.

C code:
int sqlite3_open(
   const char *filename
    sqlite3 **ppDb);

So I coded like this in lisp
(uffi-def-function "sqlite3_open"
            ((filename :cstring))
          :returning :int)
This works returning an error code or 0 on success.  the c function
all so returns a ptr handle to reference the opened object.  using
UFFI I how do I declare a c pointer for later referencing it.

knot in cables caused data stream to become twisted and kinked.
Patrick Pippen

More information about the UFFI-Users mailing list