7.10 The C structure

setStruct

Function

Signature:
val setStruct : c_object * (c_object list) -> unit

Description:

This function takes an object specifying a structure and updates its fields from the given list of data items. This relies upon fields being ordered in a structure and that the c_types of corresponding items and fields are matched. If there are fewer items than fields then only the corresponding leading prefix of fields are updated. Also, if there are more items then fields then the excess items are ignored.


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker