[ocaml-ctypes] string_of_char_ptr

john skaller skaller at internode.on.net
Sat Jan 20 22:08:16 GMT 2018


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
skaller at users.sourceforge.net
http://felix-lang.org



More information about the Ctypes mailing list