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