In F2003 how is one supposed handle C's void-type pointers?
For example, if the C function is
void *cfun(void *arg);
would this be the appropriate Fortran interface block?
interface
function cfun(arg) result(res) bind(c)
use iso_c_bindings
class(*), pointer :: arg
class(*), pointer :: res
end function
end interface
Thanks,
Neil
--
Neil Carlson <[log in to unmask]>
|