OK, I found it (actually, I remembered it). The trick is simply to do 

ptrptr = pointer([M])



segunda-feira, 16 de Fevereiro de 2015 às 19:31:53 UTC, J Luis escreveu:
>
> Hi,
>
> Sorry, but I'm again in troubles and needing help with pointers and 
> conversation with C
>
> On C, I have
>
>       if (GMT_Destroy_Data (API, &M) != GMT_NOERROR)
>
> and the prototype of GMT_Destroy_Data() is (void *, void *)
>
> in Julia I need to get the pointer of that M
>
> typeof(M) = Ptr{GMT.GMT_MATRIX}
>
> so I could do
>
> if (GMT_Destroy_Data(API, ptr) != GMT_NOERROR)
>
> but I'm not able to get that 'ptr'.
>
> (M is a C struct that I'm able to see correctly in the Julia side)
>

Reply via email to