HC_Set_User_Index

void HC_Set_User_Index(long index, void const *data)
void HC_Set_User_Index(long index, void const data)

Associates a segment with an index into a user-defined array of option strings.

Set_User_Index() may be used to associate user data with any piece of geometry, as well as with segments. This must be done during a block using Open_Geometry().

HC_Set_User_Options, HC_Show_User_Index

Parameters

index: An index into a user-defined array of options.

data: The value of the user data to be associated with its corresponding array index. Passed by reference always.