FLI function with void **
Hello All, Sorry for the additional noise. I've been working through the FLI stuff trying to test the various use cases. There is only one remaining trouble spot. I can't figure out how to call a function that takes a void ** arg. I have included the code below. struct arg_struct { int val; }; void func_handle_init(void **h) { struct arg_struct *handle = NULL; handle = (struct arg_struct *)malloc(sizeof(struct arg_struct)); memset(handle, 0, sizeof(struct arg_struct)); handle->val = 12; *h = handle; } (fli:define-foreign-function (func-handle-init "func_handle_init" :source) ((handle (:pointer (:pointer :void)))) :result-type :void :language :ansi-c) I can't seem to figure out how to call this guy. Your help will be much appreciated as always. Thanks, Gerry _______________________________________________ Lisp Hug - the mailing list for LispWorks users lisp-hug@lispworks.com http://www.lispworks.com/support/lisp-hug.html