[pypy-dev] Passing an array to C in RFFI

John Zhang John.Zhang at anu.edu.au
Tue Jun 28 03:23:32 EDT 2016


Hi all,
Thanks for the help previously.

I have another question regarding passing an array value to C function using RFFI.
Suppose I have a function in C that’s like this:
void fn(void** array_of_voips, int length)
How do I in RPython call the function using RFFI passing an array value for it?
it seems that I can’t just do
fn([a, b, c], 3)

Help appreciated.

John Zhang
------------------------------------------------------
John Zhang
Research Assistant
Programming Languages, Design & Implementation Division
Computer Systems Group
ANU College of Engineering & Computer Science
108 North Rd
The Australian National University
Acton ACT 2601
john.zhang at anu.edu.au<mailto:john.zhang at anu.edu.au>





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20160628/95195935/attachment.html>


More information about the pypy-dev mailing list