Clarion data type equivalents
Most of the C types are from Carl Barnes' excellent Clarion Magazine article Compiling C with the Clarion IDE, Part 1: It's Easier Than You Think.
C type | Clarion type |
|---|---|
* | pass by address - <omittable> |
& | pass by address - required |
[#] | Array, use |
|
|
|
|
char ** | This is a pointer to a pointer. There's an example of this in John Taylor's ClarionMag article Embedding The SQLite Engine In Clarion Applications. The C parameter is You need to declare two variables, a CString reference and a Long:
You pass in the CStringRefAddress variable to the function call. If it comes back as a non-zero value, you obtain the string this way:
If the pointer is to a string array you use a similar technique. From John Christ: The value returned by the function is a pointer to the 1st (or in C, 0th) element of an array of pointers to strings. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Usually appears as a return type, indicating that nothing is returned. |
| This is a pointer to something. Use a |