Skip to content

Instantly share code, notes, and snippets.

@HajimeKawahara
Last active January 5, 2016 08:37
Show Gist options
  • Save HajimeKawahara/4746a7bdfe9dbb68e417 to your computer and use it in GitHub Desktop.
Save HajimeKawahara/4746a7bdfe9dbb68e417 to your computer and use it in GitHub Desktop.
simple interface of f90->jl for in,out
function call_ioint(ia)
ia = Int32[ia]
ib = Int32[0]
product = ccall((:__testf_MOD_ioint, "testf.so"),Int32,(Ptr{Int32},Ptr{Int32}),ia,ib)
println(ia)
println(ib)
return product
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment