I have a function which is called from c:
>
>
> function print_key(key_::Ptr{Cwchar_t}, key_length_::Ptr{Cint})
> key_length = unsafe_load(key_length_)
> println("jlkey len: ", key_length)
> key = unsafe_load(key_, key_length)
> println("jlkey: ", key)
> return nothing
> end
> const print_key_c = cfunction(print_key, Void, (Ptr{Cwchar_t}, Ptr{Cint}))
>
>
print_key_c is then passed through ccall to c and called, key_length gives
the correct length of the string, but i can't work out how to obtain the
actual string from key_. The above just gives a "random" integer.
Any Advice?