7.10 The C structure

setPtrType

Function

Signature:
val setPtrType : { ptr:c_object, data:c_object } -> unit

Description:

This sets the c_type of the data addressed by the pointer ptr to the c_type specified by the object data. The c_type of ptr can be any pointer c_type and the c_type of data can be arbitrary. The current pointer mode is preserved.

This function performs an implicit type cast of the pointer to match that of the given data object.


MLWorks Reference Manual (version 1.0) - 3 DEC 1996

Generated with Harlequin WebMaker