Segmentation fault when calling fortran function

In gfortran, strings are passed as two arguments, a Ptr{UInt8}, and a trailing long (often 32-bits)