
17 Dec
2014
17 Dec
'14
8:19 a.m.
Hi. I could use an example of how to handle files (FILE *) with c2hs, but could not find any. I want to call some "void dump (..., FILE * f)" function. I want to use this for a handle that I obtained in Haskell land. Sure I can rewrite/add the C code so that it takes a filepath (string) and opens the file by itself, but should I? - J.W.