Manuals >Reference >User C Functions Print version of this Book (PDF file) |
![]() ![]() |
||
|
|||
Example 2This example causes the transform to read the specified file <datafile> and return the array contained therein, using the following function:
The floating point numbers in the file can be separated by various separators, including any mixture of newlines, tabs, and spaces, as well as comma (,) and semicolon (;) characters. The USERC_read_reals function offers a simpler solution than Example 1. And it is possible to use the notation 'USERC_read_reals(<datafile>)' elsewhere in IC-CAP; for example, it can be used directly in a Plot definition. Additional comments can be found in the source file $ICCAP_ROOT/src/userc_io.c. If you intend to modify the functions, or create new versions, you should save the original source file. For more information, review "Creating C Language Functions in IC-CAP" in the User's Guide. Example 2, to be coded as a Transform Program from a Setup return USERC_read_reals(<datafile>) ! read an array of reals from a file |
|||
|
|||
![]() ![]() |