According to Real World Ocaml string_of_char_ptr can be used to convert a C char* to an Ocaml string. But I can’t find it anywhere in the API!
Any clues? I found Ctypes.string_from_ptr but that is useless because it requires a length: val string_from_ptr : char ptr -> length:int -> string — john skaller [email protected] http://felix-lang.org _______________________________________________ Ctypes mailing list [email protected] http://lists.ocaml.org/listinfo/ctypes
