Did you see Libc.FILE?
That should do exactly what you want. Open the file io = open(...) on the Julia side, and pass Libc.File(io) as a FILE* to the C side so that C can use it for writing. Close it on the Julia side when you are done.
Did you see Libc.FILE?
That should do exactly what you want. Open the file io = open(...) on the Julia side, and pass Libc.File(io) as a FILE* to the C side so that C can use it for writing. Close it on the Julia side when you are done.