[cffi-devel] CFFI and FORTRAN CHARACTER*(*)

Tamas K Papp tkpapp at gmail.com
Sat Jun 5 10:45:00 UTC 2010


Hi,

I am trying to call the FORTRAN routine ILAENV in LAPACK [1] from CL,
using CFFI.  It has CHARACTER*(*) arguments, and I am not sure how to
handle these.  I found a lot of conflicting information on the web,
including examples which used C-style zero-terminated strings [2], and
others which mention string length as an extra argument to the
function.

Any kind of guidance on how to do this would be appreciated.

Thanks,

Tamas

[1] http://www.netlib.org/lapack/util/ilaenv.f
[2] http://www.ualberta.ca/AICT/RESEARCH/LinuxClusters/doc/acml350/
ILAENV_002dILAENVSET.html





More information about the cffi-devel mailing list