Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ff:def-foreign-call

4 views
Skip to first unread message

oyv...@ifi.ntnu.no

unread,
Jan 19, 2000, 3:00:00 AM1/19/00
to
I have a problem with accessing an array returned from a code

The array:
typedef char **ROW; /* return data as array of strings */

is returned to lisp threw
(ff:def-foreign-call fetch_row nil :returning ?)

How can I access the array in lisp ?
What type and how should I define it ?

I have read the manual for Foreign Function Interface but I cant figure
this out...

Thanks in advance
Řyvind


Sent via Deja.com http://www.deja.com/
Before you buy.

Reini Urban

unread,
Jan 25, 2000, 3:00:00 AM1/25/00
to
see
http://www.franz.com/support/docs/5.0.1/doc/cl/foreign_functions.htm#6.2
Special Case: Passing an array of strings from Lisp to C

There are different conventions for the array size. either by a limiting
NULL or by an extra size argument. Both are explained.

(ff:def-foreign-call handle_strings
(integer (simple-array simple-string (*))))

oyv...@ifi.ntnu.no wrote:
>I have a problem with accessing an array returned from a code
>
>The array:
>typedef char **ROW; /* return data as array of strings */
>
>is returned to lisp threw
>(ff:def-foreign-call fetch_row nil :returning ?)
>
>How can I access the array in lisp ?
>What type and how should I define it ?
>
>I have read the manual for Foreign Function Interface but I cant figure
>this out...

--
Reini Urban
http://xarch.tu-graz.ac.at/autocad/news/faq/autolisp.html

0 new messages