7.10 The C structure

setString

Function

Signature:
val setString : c_object * string -> unit

Description:

This function sets the object value to a value representing a C string. In general, ML strings can contain embedded NULL characters -- so only the string up to the first NULL is significant. However, if no NULL is included then one is added. Finally, the foreign object must have a suitable string c_type whose length (including any NULL sentinel) is sufficient to contain this data.

Functions for mainpulating pointer objects:


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker