|
|
|
SWU_listToCArraySWU_listToCArray is a library procedure which allows users to convert Tcl list to a C array of type long, integer, float or double. The input data is a Tcl list's name and a C array type. package require SWU SWU_listToCArray Tcl_list C_array_type
Return ValueIf the procedure succeeds then it returns the ID of a C array of type C_array_type filled with values of the Tcl list's elements, otherwise an error message string is returned on the Tk console's command line. Side EffectsNone. Examples
This example sets the Tcl list varList to the list of numbers, converts varList to a C array of type float, and prints out the fourth element of the C array. See Also |
|
copyright Video-Collage Inc. |