[MLton] Representation of strings in the FFI

Jens Axel Søgaard jensaxel@soegaard.net
Tue, 26 Apr 2005 23:34:30 +0200


When a string is exported from MLton to C, the C level
receives a char*-pointer. In

     <http://mlton.org/ForeignFunctionInterfaceTypes>

it says:

     Strings are not null terminated, unless you manually do
     so from the SML side.

Does this mean that it isn't possible to determine the length
of an exported string at the C level?

-- 
Jens Axel Søgaard