I've been looking into using this in conjunction with the pcre library.

However I have problems with both returning results and capturing them in PL.

The result should be an array of strings or if it's more convenient
stored by reference in a variable.

ATM I'm trying with the following:

void tst(char *strs[2]){
        strs[0] = "foo";
        strs[1] = "bar";

(native "pcre/main.so" "tst" NIL '(X (8 . S)))

X contains "foo" but I can't seem to get at "bar".

Maybe it's just easier to print the results and capture that? If so
then maybe it's even easier/more efficient to skip this completely and
simply call an executable or does native have lower overhead?

On Wed, May 9, 2012 at 8:33 PM, Alexander Burger <a...@software-lab.de> wrote:
> Hi all,
> at last, I have found the time to write an in-detail description of the
> 'native' function:
>   http://software-lab.de/doc/native.html
> Any comments welcome! It became quite long, not because 'native' is so
> complicated, but because there are so many ways of passing information
> to and from C functions. I hope it clears some of the smoke.
> Does anybody know of a programming language with an equally powerful --
> yet as simple -- C function interface? Except C/C++ of course ;-)
> Cheers,
> - Alex
> --
> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to